-rw-r--r-- | pwmanager/pwmanager/getmasterpwwnd_emb.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/getmasterpwwnd_emb.cpp b/pwmanager/pwmanager/getmasterpwwnd_emb.cpp index 8b6dfbc..8404c3e 100644 --- a/pwmanager/pwmanager/getmasterpwwnd_emb.cpp +++ b/pwmanager/pwmanager/getmasterpwwnd_emb.cpp @@ -42,6 +42,7 @@ $Id$ #include <qlabel.h> #include <qlineedit.h> #include <qpushbutton.h> +#include <qapplication.h> /* * Constructs a getMasterPwWnd as a child of 'parent', with the @@ -65,8 +66,14 @@ getMasterPwWnd::getMasterPwWnd( QWidget* parent, const char* name) QWidget* numberBox = new QWidget( page ); #ifndef DESKTOP_VERSION - numberBox->setFixedHeight(150); - numberBox->setFixedWidth(150); + if ( QApplication::desktop()->width() > 320 ) { + numberBox->setFixedHeight(250); + numberBox->setFixedWidth(200); + } + else{ + numberBox->setFixedHeight(150); + numberBox->setFixedWidth(150); + } #endif QGridLayout* numberLayout = new QGridLayout( numberBox, 4, 3 ); |