From 77a4237283b69bb8706a5d3720f8751cc43445dd Mon Sep 17 00:00:00 2001 From: q5sys Date: Sun, 9 Apr 2017 22:30:29 -0400 Subject: add commented out method for icon size in vertical taskmanager --- .../panel-plugins/taskmanager/LTaskManagerPlugin.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop/panel-plugins') 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 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; isetToolButtonStyle(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 -- cgit