diff options
author | q5sys <jt@obs-sec.com> | 2017-04-09 22:30:29 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-04-09 22:30:29 -0400 |
commit | 77a4237283b69bb8706a5d3720f8751cc43445dd (patch) | |
tree | 86d4d17197ae96afb39a4eb8b382b81fe1859484 /src-qt5/core/lumina-desktop/panel-plugins | |
parent | Get the drag and drop functionality moved over to the left-click (when dragge... (diff) | |
download | lumina-77a4237283b69bb8706a5d3720f8751cc43445dd.tar.gz lumina-77a4237283b69bb8706a5d3720f8751cc43445dd.tar.bz2 lumina-77a4237283b69bb8706a5d3720f8751cc43445dd.zip |
add commented out method for icon size in vertical taskmanager
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 e6371f34..dabf5a90 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h +++ b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.h @@ -29,6 +29,8 @@ class LTaskManagerPlugin : public LPPlugin{ public: LTaskManagerPlugin(QWidget *parent=0, QString id="taskmanager", bool horizontal=true); ~LTaskManagerPlugin(); +// int vertsizeicon; +// int *dpi; //this comes from the PCDM dpi private: QList<LTaskButton*> BUTTONS; //to keep track of the current buttons @@ -61,11 +63,17 @@ public slots: this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); this->layout()->setAlignment(Qt::AlignTop); 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); +// 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);} +// elseif( dpi = 48 ) { int vertsizeicon = ; BUTTONS[i]->setIconSize)vertsizeicon);} BUTTONS[i]->setIconSize(sz); } } } }; -#endif
\ No newline at end of file +#endif |