Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.cpp') (more/less context) (show 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 | |||
@@ -183,12 +183,14 @@ void OIpkgConfigDlg::initServerWidget() | |||
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()) ); |
@@ -196,6 +198,7 @@ void OIpkgConfigDlg::initServerWidget() | |||
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()) ); |
@@ -225,12 +228,14 @@ void OIpkgConfigDlg::initDestinationWidget() | |||
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()) ); |
@@ -238,6 +243,7 @@ void OIpkgConfigDlg::initDestinationWidget() | |||
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()) ); |
@@ -654,7 +660,9 @@ OIpkgDestDlg::OIpkgDestDlg( OConfItem *dest, QWidget *parent ) | |||
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()) ); |