author | zautrix <zautrix> | 2005-10-28 17:12:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-10-28 17:12:43 (UTC) |
commit | 16e87ac5b81352c51343715cf1080191aaba9611 (patch) (side-by-side diff) | |
tree | ba64a88d20259728559af64e8def62179775c104 /kaddressbook | |
parent | d6eb485cf2ff7a14918f51a5b21b5306f9908fdb (diff) | |
download | kdepimpi-16e87ac5b81352c51343715cf1080191aaba9611.zip kdepimpi-16e87ac5b81352c51343715cf1080191aaba9611.tar.gz kdepimpi-16e87ac5b81352c51343715cf1080191aaba9611.tar.bz2 |
ff
-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 @@ -33,6 +33,7 @@ #include <qhbox.h> #include <qcursor.h> #include <qtimer.h> +#include <qapplication.h> #include <kbuttonbox.h> #include <klistview.h> @@ -60,12 +61,10 @@ PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) QLabel *temp = new QLabel( "", this ); temp->setAlignment( Qt::AlignCenter ); temp->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); - gridLayout->addWidget( temp, 1, 0 ); QPushButton *addBut = new QPushButton ( "add", this ); addBut->setPixmap ( SmallIcon("plus")); addBut->setMaximumSize( addBut->sizeHint().height(),addBut->sizeHint().height() ); connect(addBut,SIGNAL(clicked ()),SLOT(addNumber())); - gridLayout->addWidget( addBut, 0, 0 ); sv = new QScrollView( this ); sv->setFrameStyle ( QFrame::Panel | QFrame::Plain ); @@ -77,7 +76,15 @@ PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) mainLayout = new QVBoxLayout ( mw ); mainLayout->setMargin( 0 ); 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(); mTypeNumberEditList.setAutoDelete( true ); mPopup = new QPopupMenu( this ); |