Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/oipkgconfigdlg.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.cpp b/noncore/settings/packagemanager/oipkgconfigdlg.cpp index 5f60990..d234251 100644 --- a/noncore/settings/packagemanager/oipkgconfigdlg.cpp +++ b/noncore/settings/packagemanager/oipkgconfigdlg.cpp | |||
@@ -180,25 +180,28 @@ void OIpkgConfigDlg::initServerWidget() | |||
180 | connect( m_serverList, SIGNAL(highlighted(int)), this, SLOT(slotServerSelected(int)) ); | 180 | connect( m_serverList, SIGNAL(highlighted(int)), this, SLOT(slotServerSelected(int)) ); |
181 | layout->addMultiCellWidget( m_serverList, 0, 0, 0, 2 ); | 181 | layout->addMultiCellWidget( m_serverList, 0, 0, 0, 2 ); |
182 | 182 | ||
183 | QPixmap pic; | 183 | QPixmap pic; |
184 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 184 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
185 | QPushButton *btn = new QPushButton( pic, tr( "New" ), container ); | 185 | QPushButton *btn = new QPushButton( pic, tr( "New" ), container ); |
186 | btn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
186 | QWhatsThis::add( btn, tr( "Tap here to create a new entry. Fill in the fields below and then tap on Update." ) ); | 187 | QWhatsThis::add( btn, tr( "Tap here to create a new entry. Fill in the fields below and then tap on Update." ) ); |
187 | connect( btn, SIGNAL(clicked()), this, SLOT(slotServerNew()) ); | 188 | connect( btn, SIGNAL(clicked()), this, SLOT(slotServerNew()) ); |
188 | layout->addWidget( btn, 1, 0 ); | 189 | layout->addWidget( btn, 1, 0 ); |
189 | 190 | ||
190 | pic.convertFromImage( Resource::loadImage( "edit" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 191 | pic.convertFromImage( Resource::loadImage( "edit" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
191 | m_serverEditBtn = new QPushButton( pic, tr( "Edit" ), container ); | 192 | m_serverEditBtn = new QPushButton( pic, tr( "Edit" ), container ); |
193 | m_serverEditBtn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
192 | m_serverEditBtn->setEnabled( false ); | 194 | m_serverEditBtn->setEnabled( false ); |
193 | QWhatsThis::add( m_serverEditBtn, tr( "Tap here to edit the entry selected above." ) ); | 195 | QWhatsThis::add( m_serverEditBtn, tr( "Tap here to edit the entry selected above." ) ); |
194 | connect( m_serverEditBtn, SIGNAL(clicked()), this, SLOT(slotServerEdit()) ); | 196 | connect( m_serverEditBtn, SIGNAL(clicked()), this, SLOT(slotServerEdit()) ); |
195 | layout->addWidget( m_serverEditBtn, 1, 1 ); | 197 | layout->addWidget( m_serverEditBtn, 1, 1 ); |
196 | 198 | ||
197 | pic.convertFromImage( Resource::loadImage( "trash" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 199 | pic.convertFromImage( Resource::loadImage( "trash" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
198 | m_serverDeleteBtn = new QPushButton( pic, tr( "Delete" ), container ); | 200 | m_serverDeleteBtn = new QPushButton( pic, tr( "Delete" ), container ); |
201 | m_serverDeleteBtn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
199 | m_serverDeleteBtn->setEnabled( false ); | 202 | m_serverDeleteBtn->setEnabled( false ); |
200 | QWhatsThis::add( m_serverDeleteBtn, tr( "Tap here to delete the entry selected above." ) ); | 203 | QWhatsThis::add( m_serverDeleteBtn, tr( "Tap here to delete the entry selected above." ) ); |
201 | connect( m_serverDeleteBtn, SIGNAL(clicked()), this, SLOT(slotServerDelete()) ); | 204 | connect( m_serverDeleteBtn, SIGNAL(clicked()), this, SLOT(slotServerDelete()) ); |
202 | layout->addWidget( m_serverDeleteBtn, 1, 2 ); | 205 | layout->addWidget( m_serverDeleteBtn, 1, 2 ); |
203 | } | 206 | } |
204 | 207 | ||
@@ -222,25 +225,28 @@ void OIpkgConfigDlg::initDestinationWidget() | |||
222 | connect( m_destList, SIGNAL(highlighted(int)), this, SLOT(slotDestSelected(int)) ); | 225 | connect( m_destList, SIGNAL(highlighted(int)), this, SLOT(slotDestSelected(int)) ); |
223 | layout->addMultiCellWidget( m_destList, 0, 0, 0, 2 ); | 226 | layout->addMultiCellWidget( m_destList, 0, 0, 0, 2 ); |
224 | 227 | ||
225 | QPixmap pic; | 228 | QPixmap pic; |
226 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 229 | pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
227 | QPushButton *btn = new QPushButton( pic, tr( "New" ), container ); | 230 | QPushButton *btn = new QPushButton( pic, tr( "New" ), container ); |
231 | btn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
228 | QWhatsThis::add( btn, tr( "Tap here to create a new entry. Fill in the fields below and then tap on Update." ) ); | 232 | QWhatsThis::add( btn, tr( "Tap here to create a new entry. Fill in the fields below and then tap on Update." ) ); |
229 | connect( btn, SIGNAL(clicked()), this, SLOT(slotDestNew()) ); | 233 | connect( btn, SIGNAL(clicked()), this, SLOT(slotDestNew()) ); |
230 | layout->addWidget( btn, 1, 0 ); | 234 | layout->addWidget( btn, 1, 0 ); |
231 | 235 | ||
232 | pic.convertFromImage( Resource::loadImage( "edit" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 236 | pic.convertFromImage( Resource::loadImage( "edit" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
233 | m_destEditBtn = new QPushButton( pic, tr( "Edit" ), container ); | 237 | m_destEditBtn = new QPushButton( pic, tr( "Edit" ), container ); |
238 | m_destEditBtn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
234 | m_destEditBtn->setEnabled( false ); | 239 | m_destEditBtn->setEnabled( false ); |
235 | QWhatsThis::add( m_destEditBtn, tr( "Tap here to edit the entry selected above." ) ); | 240 | QWhatsThis::add( m_destEditBtn, tr( "Tap here to edit the entry selected above." ) ); |
236 | connect( m_destEditBtn, SIGNAL(clicked()), this, SLOT(slotDestEdit()) ); | 241 | connect( m_destEditBtn, SIGNAL(clicked()), this, SLOT(slotDestEdit()) ); |
237 | layout->addWidget( m_destEditBtn, 1, 1 ); | 242 | layout->addWidget( m_destEditBtn, 1, 1 ); |
238 | 243 | ||
239 | pic.convertFromImage( Resource::loadImage( "trash" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 244 | pic.convertFromImage( Resource::loadImage( "trash" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
240 | m_destDeleteBtn = new QPushButton( pic, tr( "Delete" ), container ); | 245 | m_destDeleteBtn = new QPushButton( pic, tr( "Delete" ), container ); |
246 | m_destDeleteBtn->setMinimumHeight( AppLnk::smallIconSize() ); | ||
241 | m_destDeleteBtn->setEnabled( false ); | 247 | m_destDeleteBtn->setEnabled( false ); |
242 | QWhatsThis::add( m_destDeleteBtn, tr( "Tap here to delete the entry selected above." ) ); | 248 | QWhatsThis::add( m_destDeleteBtn, tr( "Tap here to delete the entry selected above." ) ); |
243 | connect( m_destDeleteBtn, SIGNAL(clicked()), this, SLOT(slotDestDelete()) ); | 249 | connect( m_destDeleteBtn, SIGNAL(clicked()), this, SLOT(slotDestDelete()) ); |
244 | layout->addWidget( m_destDeleteBtn, 1, 2 ); | 250 | layout->addWidget( m_destDeleteBtn, 1, 2 ); |
245 | } | 251 | } |
246 | 252 | ||
@@ -651,13 +657,15 @@ OIpkgDestDlg::OIpkgDestDlg( OConfItem *dest, QWidget *parent ) | |||
651 | QHBoxLayout *layout2 = new QHBoxLayout( this, 2, 4 ); | 657 | QHBoxLayout *layout2 = new QHBoxLayout( this, 2, 4 ); |
652 | layout->addLayout( layout2 ); | 658 | layout->addLayout( layout2 ); |
653 | 659 | ||
654 | m_location = new QLineEdit( this ); | 660 | m_location = new QLineEdit( this ); |
655 | QWhatsThis::add( m_location, tr( "Enter the absolute directory path of this entry here." ) ); | 661 | QWhatsThis::add( m_location, tr( "Enter the absolute directory path of this entry here." ) ); |
656 | layout2->addWidget( m_location ); | 662 | layout2->addWidget( m_location ); |
657 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "folder" ), QString::null, this ); | 663 | QPixmap pic; |
664 | pic.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | ||
665 | QPushButton *btn = new QPushButton( pic, QString::null, this ); | ||
658 | btn->setMaximumWidth( btn->height() ); | 666 | btn->setMaximumWidth( btn->height() ); |
659 | QWhatsThis::add( btn, tr( "Tap here to select the desired location." ) ); | 667 | QWhatsThis::add( btn, tr( "Tap here to select the desired location." ) ); |
660 | connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectPath()) ); | 668 | connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectPath()) ); |
661 | layout2->addWidget( btn ); | 669 | layout2->addWidget( btn ); |
662 | 670 | ||
663 | // Populate initial information | 671 | // Populate initial information |