summaryrefslogtreecommitdiffstats
path: root/kioslave/media/kcmodule/serviceconfigdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/media/kcmodule/serviceconfigdialog.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-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 'kioslave/media/kcmodule/serviceconfigdialog.cpp')
-rw-r--r--kioslave/media/kcmodule/serviceconfigdialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kioslave/media/kcmodule/serviceconfigdialog.cpp b/kioslave/media/kcmodule/serviceconfigdialog.cpp
index 1a127d12b..61dd060f2 100644
--- a/kioslave/media/kcmodule/serviceconfigdialog.cpp
+++ b/kioslave/media/kcmodule/serviceconfigdialog.cpp
@@ -23,20 +23,20 @@
#include <klineedit.h>
#include <kactionselector.h>
#include <kicondialog.h>
-#include <qlistbox.h>
+#include <tqlistbox.h>
#include <kservice.h>
#include <kopenwith.h>
#include <kpushbutton.h>
#include <kiconloader.h>
-#include <qpixmap.h>
-#include <qiconset.h>
+#include <tqpixmap.h>
+#include <tqiconset.h>
#include "mimetypelistboxitem.h"
ServiceConfigDialog::ServiceConfigDialog(NotifierServiceAction *action,
- const QStringList &mimetypesList,
- QWidget* parent, const char* name)
+ const TQStringList &mimetypesList,
+ TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, i18n("Edit Service"), Ok|Cancel, Ok, true),
m_action(action)
{
@@ -46,22 +46,22 @@ ServiceConfigDialog::ServiceConfigDialog(NotifierServiceAction *action,
m_view->labelEdit->setText( m_action->label() );
m_view->commandEdit->setText( m_action->service().m_strExec );
- QIconSet iconSet = SmallIconSet("configure");
- QPixmap pixMap = iconSet.pixmap( QIconSet::Small, QIconSet::Normal );
+ TQIconSet iconSet = SmallIconSet("configure");
+ TQPixmap pixMap = iconSet.pixmap( TQIconSet::Small, TQIconSet::Normal );
m_view->commandButton->setIconSet( iconSet );
m_view->commandButton->setFixedSize( pixMap.width()+8, pixMap.height()+8 );
m_iconChanged = false;
- QStringList all_mimetypes = mimetypesList;
- QStringList action_mimetypes = action->mimetypes();
+ TQStringList all_mimetypes = mimetypesList;
+ TQStringList action_mimetypes = action->mimetypes();
- QStringList::iterator it = all_mimetypes.begin();
- QStringList::iterator end = all_mimetypes.end();
+ TQStringList::iterator it = all_mimetypes.begin();
+ TQStringList::iterator end = all_mimetypes.end();
for ( ; it!=end; ++it )
{
- QListBox *list;
+ TQListBox *list;
if ( action_mimetypes.contains( *it ) )
{
@@ -78,10 +78,10 @@ ServiceConfigDialog::ServiceConfigDialog(NotifierServiceAction *action,
setMainWidget(m_view);
setCaption( m_action->label() );
- connect( m_view->iconButton, SIGNAL( iconChanged(QString) ),
- this, SLOT( slotIconChanged() ) );
- connect( m_view->commandButton, SIGNAL( clicked() ),
- this, SLOT( slotCommand() ) );
+ connect( m_view->iconButton, TQT_SIGNAL( iconChanged(TQString) ),
+ this, TQT_SLOT( slotIconChanged() ) );
+ connect( m_view->commandButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotCommand() ) );
}
bool operator==( KDEDesktopMimeType::Service s1, KDEDesktopMimeType::Service s2 )
@@ -103,12 +103,12 @@ void ServiceConfigDialog::slotOk()
service.m_strIcon = m_view->iconButton->icon();
service.m_strExec = m_view->commandEdit->text();
- QStringList mimetypes;
+ TQStringList mimetypes;
uint list_count = m_view->mimetypesSelector->selectedListBox()->count();
for( uint i=0; i < list_count; ++i )
{
- QListBoxItem *item = m_view->mimetypesSelector->selectedListBox()->item(i);
+ TQListBoxItem *item = m_view->mimetypesSelector->selectedListBox()->item(i);
MimetypeListBoxItem *mime_item = static_cast<MimetypeListBoxItem*>( item );
mimetypes.append( mime_item->mimetype() );
}
@@ -134,7 +134,7 @@ void ServiceConfigDialog::slotCommand()
{
KOpenWithDlg d(this);
int value = d.exec();
- if ( value == QDialog::Accepted )
+ if ( value == TQDialog::Accepted )
{
KService::Ptr service = d.service();
if ( service != 0L )