diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-13 09:04:41 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-13 09:04:41 -0400 |
commit | 4a853e16010357e845a2036c676b460c8173b808 (patch) | |
tree | c3743c4e84be90e5d7d33d38159fe9e83cfa9031 | |
parent | Add a new syntax rule set for JSON files. Seems to be working fine. (diff) | |
download | lumina-4a853e16010357e845a2036c676b460c8173b808.tar.gz lumina-4a853e16010357e845a2036c676b460c8173b808.tar.bz2 lumina-4a853e16010357e845a2036c676b460c8173b808.zip |
Make the taskmanager panel plugin icon-only when in vertical orientation mode.
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp index c8e24702..d1647685 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp @@ -22,7 +22,7 @@ LTaskManagerPlugin::LTaskManagerPlugin(QWidget *parent, QString id, bool horizon } LTaskManagerPlugin::~LTaskManagerPlugin(){ - + } //============== @@ -31,7 +31,7 @@ LTaskManagerPlugin::~LTaskManagerPlugin(){ void LTaskManagerPlugin::UpdateButtons(){ updating = QDateTime::currentDateTime(); //global time stamp QDateTime ctime = updating; //current thread time stamp - + //Get the current window list QList<WId> winlist = LSession::handle()->XCB->WindowList(); // Ignore the windows which don't want to be listed @@ -119,7 +119,7 @@ void LTaskManagerPlugin::UpdateButtons(){ but->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); }else{ but->setIconSize(QSize(this->width(), this->width())); - but->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); + but->setToolButtonStyle(Qt::ToolButtonIconOnly); } this->layout()->addWidget(but); connect(but, SIGNAL(MenuClosed()), this, SIGNAL(MenuClosed())); diff --git a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h index dabf5a90..0d6d623c 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h +++ b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h @@ -65,8 +65,8 @@ public slots: QSize sz(this->width(), this->width()); // QSize sz(this->width(), this->height()); //we want to increase the width but not the height of the icons for(int i=0; i<BUTTONS.length(); i++){ - BUTTONS[i]->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); -// BUTTONS[i]->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); + BUTTONS[i]->setToolButtonStyle(Qt::ToolButtonIconOnly); +// BUTTONS[i]->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); // if( dpi = 196 ){ int vertsizeicon = ; BUTTONS[i]->setIconSize(vertsizeicon);} // elseif( dpi = 144 ) { int vertsizeicon = ; BUTTONS[i]->setIconSize(vertsizeicon);} // elseif( dpi = 96 ) { int vertsizeicon = ; BUTTONS[i]->setIconSize(vertsizeicon);} |