diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/applets/media/preferencesdialog.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/media/preferencesdialog.cpp')
-rw-r--r-- | kicker/applets/media/preferencesdialog.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kicker/applets/media/preferencesdialog.cpp b/kicker/applets/media/preferencesdialog.cpp index 179878e89..8d9cdcc94 100644 --- a/kicker/applets/media/preferencesdialog.cpp +++ b/kicker/applets/media/preferencesdialog.cpp @@ -21,34 +21,34 @@ #include <klocale.h> #include <kmimetype.h> -#include <qvbox.h> -#include <qwhatsthis.h> +#include <tqvbox.h> +#include <tqwhatsthis.h> #include <klistview.h> #include <kfiledetailview.h> class MediumTypeItem : public QCheckListItem { public: - MediumTypeItem(QListView *parent, const QString name, - const QString mimetype) - : QCheckListItem(parent, name, CheckBox), + MediumTypeItem(TQListView *parent, const TQString name, + const TQString mimetype) + : TQCheckListItem(parent, name, CheckBox), mMimeType(mimetype) { } - const QString &mimeType() const { return mMimeType; } + const TQString &mimeType() const { return mMimeType; } private: - QString mMimeType; + TQString mMimeType; }; class MediumItem : public QCheckListItem { public: - MediumItem(QListView *parent, const QString name, + MediumItem(TQListView *parent, const TQString name, const KFileItem medium) - : QCheckListItem(parent, name, CheckBox), + : TQCheckListItem(parent, name, CheckBox), mMedium(medium) { } - const QString itemURL() const { return mMedium.url().url(); } + const TQString itemURL() const { return mMedium.url().url(); } private: KFileItem mMedium; @@ -56,27 +56,27 @@ private: -PreferencesDialog::PreferencesDialog(KFileItemList media, QWidget *parent, +PreferencesDialog::PreferencesDialog(KFileItemList media, TQWidget *parent, const char *name) : KDialogBase(Tabbed, i18n("Media Applet Preferences"), Ok|Cancel|Default, Ok, parent, name, true), mMedia(media) { - QVBox *types_page = addVBoxPage( i18n("Medium Types") ); + TQVBox *types_page = addVBoxPage( i18n("Medium Types") ); mpMediumTypesListView = new KListView(types_page); //mpMediumTypesListView->setFullWidth(true); mpMediumTypesListView->addColumn( i18n("Types to Display") ); - QWhatsThis::add(mpMediumTypesListView, i18n("Deselect the medium types which you do not want to see in the applet")); + TQWhatsThis::add(mpMediumTypesListView, i18n("Deselect the medium types which you do not want to see in the applet")); - QVBox *media_page = addVBoxPage( i18n("Media") ); + TQVBox *media_page = addVBoxPage( i18n("Media") ); mpMediaListView = new KListView(media_page); //mpMediaListView->setFullWidth(true); mpMediaListView->addColumn( i18n("Media to Display") ); - QWhatsThis::add(mpMediaListView, i18n("Deselect the media which you do not want to see in the applet")); + TQWhatsThis::add(mpMediaListView, i18n("Deselect the media which you do not want to see in the applet")); slotDefault(); } @@ -87,7 +87,7 @@ PreferencesDialog::~PreferencesDialog() void PreferencesDialog::slotDefault() { - QStringList defaultExclude; + TQStringList defaultExclude; defaultExclude << "media/hdd_mounted"; defaultExclude << "media/hdd_unmounted"; @@ -97,12 +97,12 @@ void PreferencesDialog::slotDefault() defaultExclude << "media/smb_unmounted"; setExcludedMediumTypes(defaultExclude); - setExcludedMedia(QStringList()); + setExcludedMedia(TQStringList()); } -QStringList PreferencesDialog::excludedMediumTypes() +TQStringList PreferencesDialog::excludedMediumTypes() { - QStringList excludedTypes; + TQStringList excludedTypes; for(MediumTypeItem *it=static_cast<MediumTypeItem *>(mpMediumTypesListView->firstChild()); it; it=static_cast<MediumTypeItem *>(it->nextSibling())) @@ -113,13 +113,13 @@ QStringList PreferencesDialog::excludedMediumTypes() return excludedTypes; } -void PreferencesDialog::setExcludedMediumTypes(QStringList excludedTypesList) +void PreferencesDialog::setExcludedMediumTypes(TQStringList excludedTypesList) { mpMediumTypesListView->clear(); mpMediumTypesListView->setRootIsDecorated(false); KMimeType::List mimetypes = KMimeType::allMimeTypes(); - QValueListIterator<KMimeType::Ptr> it(mimetypes.begin()); + TQValueListIterator<KMimeType::Ptr> it(mimetypes.begin()); for(; it != mimetypes.end(); ++it) { @@ -132,9 +132,9 @@ void PreferencesDialog::setExcludedMediumTypes(QStringList excludedTypesList) } } -QStringList PreferencesDialog::excludedMedia() +TQStringList PreferencesDialog::excludedMedia() { - QStringList excluded; + TQStringList excluded; for(MediumItem *it=static_cast<MediumItem *>(mpMediaListView->firstChild()); it; it=static_cast<MediumItem *>(it->nextSibling())) @@ -145,7 +145,7 @@ QStringList PreferencesDialog::excludedMedia() return excluded; } -void PreferencesDialog::setExcludedMedia(QStringList excludedList) +void PreferencesDialog::setExcludedMedia(TQStringList excludedList) { mpMediaListView->clear(); mpMediaListView->setRootIsDecorated(false); |