author | llornkcor <llornkcor> | 2002-07-08 03:19:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-08 03:19:43 (UTC) |
commit | bbbd61bf777f1ac2342cde61e0710c9d6a348114 (patch) (side-by-side diff) | |
tree | d3b8d66608dfd5da36cc23295c0c56077fcfeff6 | |
parent | 6162155d2b146c7b2e713f56e215618d116cef3b (diff) | |
download | opie-bbbd61bf777f1ac2342cde61e0710c9d6a348114.zip opie-bbbd61bf777f1ac2342cde61e0710c9d6a348114.tar.gz opie-bbbd61bf777f1ac2342cde61e0710c9d6a348114.tar.bz2 |
change pushbutton to toolbutton
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 15 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.h | 4 |
2 files changed, 10 insertions, 9 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 8f2b9c9..9d6356d 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp @@ -127,8 +127,8 @@ OpieFtp::OpieFtp( ) - cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); + cdUpButton = new QToolButton( this,"cdUpButton"); + cdUpButton->setPixmap(Resource::loadPixmap("up")); cdUpButton ->setFixedSize( QSize( 20, 20 ) ); connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); - cdUpButton ->setFlat(TRUE); layout->addMultiCellWidget( cdUpButton, 0, 0, 3, 3 ); - cdUpButton->hide(); + cdUpButton->hide(); @@ -140,6 +140,6 @@ OpieFtp::OpieFtp( ) - homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton"); + homeButton = new QToolButton(this,"homeButton"); + homeButton->setPixmap( Resource::loadPixmap("home")); homeButton->setFixedSize( QSize( 20, 20 ) ); connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); - homeButton->setFlat(TRUE); layout->addMultiCellWidget( homeButton, 0, 0, 4, 4); @@ -233,3 +233,3 @@ OpieFtp::OpieFtp( ) tabLayout_3->addMultiCellWidget( PasswordEdit, 1, 1, 2, 3 ); - +//PasswordEdit->setFixedWidth(85); TextLabel3 = new QLabel( tab_3, "TextLabel3" ); @@ -252,3 +252,2 @@ OpieFtp::OpieFtp( ) tabLayout_3->addMultiCellWidget( remotePath, 3, 3, 2, 3 ); - TextLabel4 = new QLabel( tab_3, "TextLabel4" ); @@ -287,3 +286,3 @@ OpieFtp::OpieFtp( ) layout->addMultiCellWidget( currentPathCombo, 3, 3, 0, 4); - + currentPathCombo ->setFixedWidth(220); currentPathCombo->setEditable(TRUE); diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h index 218a958..ad36b1d 100644 --- a/noncore/net/opieftp/opieftp.h +++ b/noncore/net/opieftp/opieftp.h @@ -39,2 +39,3 @@ class QLineEdit; class QPushButton; +class QToolButton; class QStringList; @@ -62,3 +63,4 @@ public: QListViewItem * item; - QPushButton *connectServerBtn, *cdUpButton, *homeButton, *docButton; + QPushButton *connectServerBtn;// + QToolButton *cdUpButton, *homeButton, *docButton; bool b; |