summaryrefslogtreecommitdiffstats
path: root/kicker/taskmanager
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-03 14:59:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-04 19:01:09 +0900
commitf5cd123b1535412e548ce6f99e5fc17512897793 (patch)
treec0054099b96f1046a259eaf702954207bf295d60 /kicker/taskmanager
parentc57ea5f28b963407717f62385cdd1d0df4740a9f (diff)
downloadtdebase-f5cd123b1535412e548ce6f99e5fc17512897793.tar.gz
tdebase-f5cd123b1535412e548ce6f99e5fc17512897793.zip
Fix tiling menu functionality when windows in the taskbar are grouped
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 06fe07e626b5e0d0152e30d5c7608c7d0e4e4665)
Diffstat (limited to 'kicker/taskmanager')
-rw-r--r--kicker/taskmanager/taskrmbmenu.cpp25
-rw-r--r--kicker/taskmanager/taskrmbmenu.h1
2 files changed, 8 insertions, 18 deletions
diff --git a/kicker/taskmanager/taskrmbmenu.cpp b/kicker/taskmanager/taskrmbmenu.cpp
index 57109ba2d..c2c8a11bc 100644
--- a/kicker/taskmanager/taskrmbmenu.cpp
+++ b/kicker/taskmanager/taskrmbmenu.cpp
@@ -293,23 +293,23 @@ TQPopupMenu* TaskRMBMenu::makeTileMenu(Task::Ptr t)
TQPopupMenu *m = new TQPopupMenu( this );
// Tile to side (the menu id matched the ActiveBorder index used for tiling)
- int id = m->insertItem( UserIconSet("tile_left"), i18n("&Left"), this, TQ_SLOT( slotTileTo(int) ) );
+ int id = m->insertItem( UserIconSet("tile_left"), i18n("&Left"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 6 );
- id = m->insertItem( UserIconSet("tile_right"), i18n("&Right"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_right"), i18n("&Right"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 2 );
- id = m->insertItem( UserIconSet("tile_top"), i18n("&Top"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_top"), i18n("&Top"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 0 );
- id = m->insertItem( UserIconSet("tile_bottom"), i18n("&Bottom"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottom"), i18n("&Bottom"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 4 );
// Tile to corner (the menu id matched the ActiveBorder index used for tiling)
- id = m->insertItem( UserIconSet("tile_topleft"), i18n("Top &Left"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_topleft"), i18n("Top &Left"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 7 );
- id = m->insertItem( UserIconSet("tile_topright"), i18n("Top &Right"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_topright"), i18n("Top &Right"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 1 );
- id = m->insertItem( UserIconSet("tile_bottomleft"), i18n("Bottom L&eft"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottomleft"), i18n("Bottom L&eft"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 5 );
- id = m->insertItem( UserIconSet("tile_bottomright"), i18n("&Bottom R&ight"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottomright"), i18n("&Bottom R&ight"), t, TQ_SLOT( tileTo(int) ) );
m->setItemParameter( id, 3 );
return m;
@@ -377,12 +377,3 @@ void TaskRMBMenu::slotAllToCurrentDesktop()
(*it)->toCurrentDesktop();
}
}
-
-void TaskRMBMenu::slotTileTo(int position)
-{
- Task::List::iterator itEnd = tasks.end();
- for (Task::List::iterator it = tasks.begin(); it != itEnd; ++it)
- {
- (*it)->tileTo(position);
- }
-}
diff --git a/kicker/taskmanager/taskrmbmenu.h b/kicker/taskmanager/taskrmbmenu.h
index 2ccb05fdb..5dd66b98f 100644
--- a/kicker/taskmanager/taskrmbmenu.h
+++ b/kicker/taskmanager/taskrmbmenu.h
@@ -51,7 +51,6 @@ private slots:
void slotCloseAll();
void slotAllToDesktop(int desktop);
void slotAllToCurrentDesktop();
- void slotTileTo(int position);
private:
Task::List tasks;