summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp15
-rw-r--r--noncore/net/opieftp/opieftp.h4
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;