diff options
-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 |