Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 1287c57..9e38d14 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -93,40 +93,52 @@ AdvancedFm::AdvancedFm( ) | |||
93 | menuBar->insertItem( tr( "File" ), fileMenu); | 93 | menuBar->insertItem( tr( "File" ), fileMenu); |
94 | menuBar->insertItem( tr( "View" ), viewMenu); | 94 | menuBar->insertItem( tr( "View" ), viewMenu); |
95 | 95 | ||
96 | qpeDirButton= new QPushButton(Resource::loadIconSet("launcher/opielogo16x16"),"",this,"QPEButton"); | 96 | qpeDirButton= new QToolButton(this,"QPEButton"); |
97 | qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); | ||
98 | // qpeDirButton= new QPushButton(Resource::loadIconSet("launcher/opielogo16x16"),"",this,"QPEButton"); | ||
97 | qpeDirButton ->setFixedSize( QSize( 20, 20 ) ); | 99 | qpeDirButton ->setFixedSize( QSize( 20, 20 ) ); |
98 | connect( qpeDirButton ,SIGNAL(released()),this,SLOT( QPEButtonPushed()) ); | 100 | connect( qpeDirButton ,SIGNAL(released()),this,SLOT( QPEButtonPushed()) ); |
99 | qpeDirButton->setFlat(TRUE); | 101 | //qpeDirButton->setFlat(TRUE); |
100 | layout->addMultiCellWidget( qpeDirButton , 0, 0, 2, 2); | 102 | layout->addMultiCellWidget( qpeDirButton , 0, 0, 2, 2); |
101 | 103 | ||
102 | cfButton = new QPushButton(Resource::loadIconSet("cardmon/pcmcia"),"",this,"CFButton"); | 104 | cfButton = new QToolButton( this,"CFButton"); |
105 | cfButton->setPixmap(Resource::loadPixmap("cardmon/pcmcia")); | ||
106 | // cfButton = new QPushButton(Resource::loadIconSet("cardmon/pcmcia"),"",this,"CFButton"); | ||
103 | cfButton ->setFixedSize( QSize( 20, 20 ) ); | 107 | cfButton ->setFixedSize( QSize( 20, 20 ) ); |
104 | connect( cfButton ,SIGNAL(released()),this,SLOT( CFButtonPushed()) ); | 108 | connect( cfButton ,SIGNAL(released()),this,SLOT( CFButtonPushed()) ); |
105 | cfButton->setFlat(TRUE); | 109 | //cfButton->setFlat(TRUE); |
106 | layout->addMultiCellWidget( cfButton , 0, 0, 3, 3); | 110 | layout->addMultiCellWidget( cfButton , 0, 0, 3, 3); |
107 | 111 | ||
108 | sdButton = new QPushButton(Resource::loadIconSet("sdmon/sdcard"),"",this,"SDButton"); | 112 | sdButton = new QToolButton( this,"SDButton"); |
113 | sdButton->setPixmap(Resource::loadPixmap("sdmon/sdcard")); | ||
114 | // sdButton = new QPushButton(Resource::loadIconSet("sdmon/sdcard"),"",this,"SDButton"); | ||
109 | sdButton->setFixedSize( QSize( 20, 20 ) ); | 115 | sdButton->setFixedSize( QSize( 20, 20 ) ); |
110 | connect( sdButton ,SIGNAL(released()),this,SLOT( SDButtonPushed()) ); | 116 | connect( sdButton ,SIGNAL(released()),this,SLOT( SDButtonPushed()) ); |
111 | sdButton->setFlat(TRUE); | 117 | // sdButton->setFlat(TRUE); |
112 | layout->addMultiCellWidget( sdButton , 0, 0, 4, 4); | 118 | layout->addMultiCellWidget( sdButton , 0, 0, 4, 4); |
113 | 119 | ||
114 | cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); | 120 | cdUpButton = new QToolButton( this,"cdUpButton"); |
121 | cdUpButton->setPixmap(Resource::loadPixmap("up")); | ||
122 | // cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); | ||
115 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); | 123 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); |
116 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); | 124 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); |
117 | cdUpButton ->setFlat(TRUE); | 125 | //cdUpButton ->setFlat(TRUE); |
118 | layout->addMultiCellWidget( cdUpButton , 0, 0, 5, 5); | 126 | layout->addMultiCellWidget( cdUpButton , 0, 0, 5, 5); |
119 | 127 | ||
120 | docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); | 128 | docButton = new QToolButton( this,"docsButton"); |
129 | docButton->setPixmap(Resource::loadPixmap("DocsIcon")); | ||
130 | // docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); | ||
121 | docButton->setFixedSize( QSize( 20, 20 ) ); | 131 | docButton->setFixedSize( QSize( 20, 20 ) ); |
122 | connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); | 132 | connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); |
123 | docButton->setFlat(TRUE); | 133 | // docButton->setFlat(TRUE); |
124 | layout->addMultiCellWidget( docButton, 0, 0, 6, 6); | 134 | layout->addMultiCellWidget( docButton, 0, 0, 6, 6); |
125 | 135 | ||
126 | homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton"); | 136 | homeButton = new QToolButton( this,"homeButton"); |
137 | homeButton->setPixmap(Resource::loadPixmap("home")); | ||
138 | // homeButton = new QPushButton( Resource::loadIconSet("home"),"",this,"homeButton"); | ||
127 | homeButton->setFixedSize( QSize( 20, 20 ) ); | 139 | homeButton->setFixedSize( QSize( 20, 20 ) ); |
128 | connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); | 140 | connect(homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); |
129 | homeButton->setFlat(TRUE); | 141 | // homeButton->setFlat(TRUE); |
130 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); | 142 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); |
131 | // fileMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); | 143 | // fileMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); |
132 | // fileMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); | 144 | // fileMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); |