summaryrefslogtreecommitdiffstats
path: root/kioslave/media/medianotifier/notificationdialog.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/medianotifier/notificationdialog.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/medianotifier/notificationdialog.cpp')
-rw-r--r--kioslave/media/medianotifier/notificationdialog.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kioslave/media/medianotifier/notificationdialog.cpp b/kioslave/media/medianotifier/notificationdialog.cpp
index a4dab0245..7ba172601 100644
--- a/kioslave/media/medianotifier/notificationdialog.cpp
+++ b/kioslave/media/medianotifier/notificationdialog.cpp
@@ -18,31 +18,31 @@
*/
#include "notificationdialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <krun.h>
#include <klocale.h>
#include <kstandarddirs.h>
#include <kio/global.h>
#include <klistbox.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include "actionlistboxitem.h"
#include "notificationdialogview.h"
NotificationDialog::NotificationDialog( KFileItem medium, NotifierSettings *settings,
- QWidget* parent, const char* name )
+ TQWidget* parent, const char* name )
: KDialogBase( parent, name, false, i18n( "Medium Detected" ), Ok|Cancel|User1, Ok, true),
m_medium(medium), m_settings( settings )
{
setCaption( KIO::decodeFileName(m_medium.name()) );
clearWState( WState_Polished );
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
m_view = new NotificationDialogView( page );
@@ -53,30 +53,30 @@ NotificationDialog::NotificationDialog( KFileItem medium, NotifierSettings *sett
updateActionsListBox();
- resize( QSize(400,400).expandedTo( minimumSizeHint() ) );
+ resize( TQSize(400,400).expandedTo( minimumSizeHint() ) );
m_actionWatcher = new KDirWatch();
- QString services_dir
+ TQString services_dir
= locateLocal( "data", "konqueror/servicemenus", true );
m_actionWatcher->addDir( services_dir );
setButtonText( User1, i18n("Configure...") );
- connect( m_actionWatcher, SIGNAL( dirty( const QString & ) ),
- this, SLOT( slotActionsChanged( const QString & ) ) );
- connect( this , SIGNAL( okClicked() ),
- this, SLOT( slotOk() ) );
- connect( this, SIGNAL( user1Clicked() ),
- this, SLOT( slotConfigure() ) );
- connect( m_view->actionsList, SIGNAL( doubleClicked ( QListBoxItem*, const QPoint & ) ),
- this, SLOT( slotOk() ) );
+ connect( m_actionWatcher, TQT_SIGNAL( dirty( const TQString & ) ),
+ this, TQT_SLOT( slotActionsChanged( const TQString & ) ) );
+ connect( this , TQT_SIGNAL( okClicked() ),
+ this, TQT_SLOT( slotOk() ) );
+ connect( this, TQT_SIGNAL( user1Clicked() ),
+ this, TQT_SLOT( slotConfigure() ) );
+ connect( m_view->actionsList, TQT_SIGNAL( doubleClicked ( TQListBoxItem*, const TQPoint & ) ),
+ this, TQT_SLOT( slotOk() ) );
- connect( this, SIGNAL( finished() ),
- this, SLOT( delayedDestruct() ) );
+ connect( this, TQT_SIGNAL( finished() ),
+ this, TQT_SLOT( delayedDestruct() ) );
m_actionWatcher->startScan();
- QPushButton * btn = actionButton( Ok );
+ TQPushButton * btn = actionButton( Ok );
btn->setFocus();
}
@@ -90,11 +90,11 @@ void NotificationDialog::updateActionsListBox()
{
m_view->actionsList->clear();
- QValueList<NotifierAction*> actions
+ TQValueList<NotifierAction*> actions
= m_settings->actionsForMimetype( m_medium.mimetype() );
- QValueList<NotifierAction*>::iterator it = actions.begin();
- QValueList<NotifierAction*>::iterator end = actions.end();
+ TQValueList<NotifierAction*>::iterator it = actions.begin();
+ TQValueList<NotifierAction*>::iterator end = actions.end();
for ( ; it!=end; ++it )
{
@@ -106,7 +106,7 @@ void NotificationDialog::updateActionsListBox()
}
-void NotificationDialog::slotActionsChanged(const QString &/*dir*/)
+void NotificationDialog::slotActionsChanged(const TQString &/*dir*/)
{
m_settings->reload();
updateActionsListBox();
@@ -114,7 +114,7 @@ void NotificationDialog::slotActionsChanged(const QString &/*dir*/)
void NotificationDialog::slotOk()
{
- QListBoxItem *item = m_view->actionsList->selectedItem();
+ TQListBoxItem *item = m_view->actionsList->selectedItem();
if ( item != 0L )
{
@@ -136,7 +136,7 @@ void NotificationDialog::launchAction( NotifierAction *action )
action->execute(m_medium);
- QDialog::accept();
+ TQDialog::accept();
}
void NotificationDialog::slotConfigure()