-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index f52cedb..7e2aec1 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp @@ -35,2 +35,3 @@ #include <qtimer.h> +#include <qapplication.h> @@ -62,3 +63,2 @@ PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) temp->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); - gridLayout->addWidget( temp, 1, 0 ); QPushButton *addBut = new QPushButton ( "add", this ); @@ -67,3 +67,2 @@ PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) connect(addBut,SIGNAL(clicked ()),SLOT(addNumber())); - gridLayout->addWidget( addBut, 0, 0 ); @@ -79,3 +78,11 @@ PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) mainLayout->setSpacing( 0 ); - gridLayout->addMultiCellWidget( sv, 0, 1, 1,1 ); + if ( QApplication::desktop()->width() == 240 || QApplication::desktop()->width() == 480 ) { + gridLayout->addWidget( addBut, 0, 0 ); + gridLayout->addWidget( temp, 0, 1 ); + gridLayout->addMultiCellWidget( sv, 1,1 , 0,1 ); + } else { + gridLayout->addWidget( temp, 1, 0 ); + gridLayout->addWidget( addBut, 0, 0 ); + gridLayout->addMultiCellWidget( sv, 0, 1, 1,1 ); + } setDefaults(); |