remove actions gridScrollLeft and gridScrollRight

This commit is contained in:
Peter Fajdiga
2023-07-15 18:32:08 +02:00
parent 3238d70772
commit bdf62b65e4
5 changed files with 3 additions and 53 deletions

View File

@@ -184,31 +184,7 @@
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_manualScrollStep">
<property name="text">
<string>Manual scroll step size:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QSpinBox" name="kcfg_manualScrollStep">
<property name="suffix">
<string> px</string>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QCheckBox" name="kcfg_untileOnDrag">
<property name="text">
<string>Un-tile windows by dragging them</string>
@@ -216,7 +192,7 @@
</widget>
</item>
<item row="9" column="1">
<item row="8" column="1">
<widget class="QCheckBox" name="kcfg_stackColumnsByDefault">
<property name="text">
<string>Stack columns by default</string>
@@ -224,7 +200,7 @@
</widget>
</item>
<item row="10" column="1">
<item row="9" column="1">
<widget class="QCheckBox" name="kcfg_resizeNeighborColumn">
<property name="text">
<string>Resize neighbor column on edge resize</string>
@@ -232,7 +208,7 @@
</widget>
</item>
<item row="11" column="0" colspan="2">
<item row="10" column="0" colspan="2">
<spacer name="bottomSpacer_tab_general">
<property name="orientation">
<enum>Qt::Vertical</enum>

View File

@@ -182,14 +182,6 @@ function initActions(world: World) {
});
},
gridScrollLeft: () => {
gridScroll(world, -world.config.manualScrollStep);
},
gridScrollRight: () => {
gridScroll(world, world.config.manualScrollStep);
},
gridScrollStart: () => {
const grid = world.getCurrentGrid();
const firstColumn = grid.getFirstColumn();

View File

@@ -6,7 +6,6 @@ type Config = {
gapsInnerHorizontal: number,
gapsInnerVertical: number,
overscroll: number,
manualScrollStep: number,
untileOnDrag: boolean,
stackColumnsByDefault: boolean,
resizeNeighborColumn: boolean,

View File

@@ -83,11 +83,6 @@ const configDef = [
"type": "UInt",
"default": 18
},
{
"name": "manualScrollStep",
"type": "UInt",
"default": 200
},
{
"name": "untileOnDrag",
"type": "Bool",

View File

@@ -140,18 +140,6 @@ const keyBindings: KeyBinding[] = [
"defaultKeySequence": "Meta+Alt+D",
"action": "gridScrollRightColumn",
},
{
"name": "grid-scroll-left",
"description": "Scroll left",
"defaultKeySequence": "Meta+Alt+PgUp",
"action": "gridScrollLeft",
},
{
"name": "grid-scroll-right",
"description": "Scroll right",
"defaultKeySequence": "Meta+Alt+PgDown",
"action": "gridScrollRight",
},
{
"name": "grid-scroll-start",
"description": "Scroll to start",