diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2015-04-14 14:22:16 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2015-04-15 10:54:06 +0200 |
commit | 9159a6f9ea308404227f64998c284c482f58b162 (patch) | |
tree | 06b56d2bcfc813a4fd2dc07444162e58459196bd /src/gui/selectprofileform.ui.h | |
parent | 4b85e25aa5ec624a299028a30bb625248beefedd (diff) | |
download | twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.gz twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.lz twinkle-9159a6f9ea308404227f64998c284c482f58b162.tar.xz twinkle-9159a6f9ea308404227f64998c284c482f58b162.zip |
Qt4 port step 6: QPixmap::fromMimeSource cleanup
Convert remaining uses of QPixmap::fromMimeSource() to
qPixmapFromMimeSource (will be rewritten to native Qt4 resources later).
Diffstat (limited to 'src/gui/selectprofileform.ui.h')
-rw-r--r-- | src/gui/selectprofileform.ui.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/selectprofileform.ui.h b/src/gui/selectprofileform.ui.h index 452e796..dcdc338 100644 --- a/src/gui/selectprofileform.ui.h +++ b/src/gui/selectprofileform.ui.h @@ -152,7 +152,7 @@ void SelectProfileForm::showForm(Q3MainWindow *_mainWindow) list<string> l = sys_config->get_start_user_profiles(); if (std::find(l.begin(), l.end(), profile.ascii()) != l.end()) { - item->setPixmap(0, QPixmap::fromMimeSource("twinkle16.png")); + item->setPixmap(0, qPixmapFromMimeSource("twinkle16.png")); defaultSet = true; } @@ -296,7 +296,7 @@ void SelectProfileForm::newProfileCreated() Q3CheckListItem *item = new Q3CheckListItem(profileListView, user_config->get_profile_name().c_str(), Q3CheckListItem::CheckBox); - item->setPixmap(0, QPixmap::fromMimeSource("penguin-small.png")); + item->setPixmap(0, qPixmapFromMimeSource("penguin-small.png")); // Make the new profile the selected profile // Do not change this without changing the exec method. @@ -493,7 +493,7 @@ void SelectProfileForm::setAsDefault() // Restore all pixmaps Q3ListViewItemIterator i(profileListView); while (i.current()) { - i.current()->setPixmap(0, QPixmap::fromMimeSource("penguin-small.png")); + i.current()->setPixmap(0, qPixmapFromMimeSource("penguin-small.png")); i++; } @@ -503,7 +503,7 @@ void SelectProfileForm::setAsDefault() Q3ListViewItemIterator j(profileListView, Q3ListViewItemIterator::Checked); while (j.current()) { Q3CheckListItem *item = (Q3CheckListItem *)j.current(); - item->setPixmap(0, QPixmap::fromMimeSource("twinkle16.png")); + item->setPixmap(0, qPixmapFromMimeSource("twinkle16.png")); l.push_back(item->text().ascii()); j++; } @@ -618,7 +618,7 @@ void SelectProfileForm::fillProfileListView(const QStringList &profiles) profile.truncate(profile.length() - strlen(USER_FILE_EXT)); Q3CheckListItem *item = new Q3CheckListItem( profileListView, profile, Q3CheckListItem::CheckBox); - item->setPixmap(0, QPixmap::fromMimeSource("penguin-small.png")); + item->setPixmap(0, qPixmapFromMimeSource("penguin-small.png")); } // Highlight the first profile |