summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmobile/kmobile.cpp')
-rw-r--r--kmobile/kmobile.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/kmobile/kmobile.cpp b/kmobile/kmobile.cpp
index 0c056bd4c..07fa1582b 100644
--- a/kmobile/kmobile.cpp
+++ b/kmobile/kmobile.cpp
@@ -17,10 +17,10 @@
*/
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kglobal.h>
#include <klocale.h>
@@ -74,8 +74,8 @@ KMobile::KMobile()
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
// restore all configured devices
restoreAll();
@@ -83,7 +83,7 @@ KMobile::KMobile()
// setup the system tray
m_systemTray = new SystemTray(this, "systemTray");
m_systemTray->show();
- connect(m_systemTray, SIGNAL(quitSelected()), this, SLOT(slotQuit()));
+ connect(m_systemTray, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(slotQuit()));
}
KMobile::~KMobile()
@@ -93,29 +93,29 @@ KMobile::~KMobile()
void KMobile::setupActions()
{
- KStdAction::close(this, SLOT(dockApplication()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(dockApplication()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
optionsShowToolbar();
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
new KAction(i18n("&Add Device..."), "folder_new", 0,
- this, SLOT(addDevice()), actionCollection(), "device_add");
+ this, TQT_SLOT(addDevice()), actionCollection(), "device_add");
new KAction( KGuiItem( i18n("&Remove Device"), "edittrash", i18n("Remove this device") ),
- "Delete", this, SLOT(removeDevice()), actionCollection(), "device_remove");
+ "Delete", this, TQT_SLOT(removeDevice()), actionCollection(), "device_remove");
new KAction(i18n("Re&name Device..."), 0, Key_F2,
- this, SLOT(renameDevice()), actionCollection(), "device_rename");
+ this, TQT_SLOT(renameDevice()), actionCollection(), "device_rename");
new KAction(i18n("&Configure Device..."), "configure", 0,
- this, SLOT(configDevice()), actionCollection(), "device_configure");
+ this, TQT_SLOT(configDevice()), actionCollection(), "device_configure");
createGUI();
- connect( kapp, SIGNAL(aboutToQuit()), this, SLOT(saveAll()) );
+ connect( kapp, TQT_SIGNAL(aboutToQuit()), this, TQT_SLOT(saveAll()) );
}
@@ -182,7 +182,7 @@ void KMobile::readProperties(KConfig *config)
// the app is being restored. read in here whatever you wrote
// in 'saveProperties'
- QString url = config->readPathEntry("lastURL");
+ TQString url = config->readPathEntry("lastURL");
}
void KMobile::optionsShowToolbar()
@@ -241,7 +241,7 @@ void KMobile::optionsPreferences()
void KMobile::renameDevice()
{
// rename the current selected device
- QIconViewItem *item = m_view->currentItem();
+ TQIconViewItem *item = m_view->currentItem();
if (item)
item->rename();
}
@@ -261,34 +261,34 @@ void KMobile::addDevice()
dialog->helpText->setText( i18n("Please select the category to which your new device belongs:") );
dialog->addButton->setText( i18n("&Scan for New Devices...") );
dialog->addButton->setDisabled(true);
- dialog->iconView->connect( dialog->iconView, SIGNAL(doubleClicked(QIconViewItem*)),
- dialog, SLOT(accept()) );
+ dialog->iconView->connect( dialog->iconView, TQT_SIGNAL(doubleClicked(TQIconViewItem*)),
+ dialog, TQT_SLOT(accept()) );
dialog->selectButton->setText( i18n("&Add") );
- dialog->selectButton->connect( dialog->selectButton, SIGNAL(clicked()), dialog, SLOT(accept()) );
- dialog->cancelButton->connect( dialog->cancelButton, SIGNAL(clicked()), dialog, SLOT(reject()) );
+ dialog->selectButton->connect( dialog->selectButton, TQT_SIGNAL(clicked()), dialog, TQT_SLOT(accept()) );
+ dialog->cancelButton->connect( dialog->cancelButton, TQT_SIGNAL(clicked()), dialog, TQT_SLOT(reject()) );
KTrader::OfferList list = KMobileItem::getMobileDevicesList();
KTrader::OfferListIterator it;
KService::Ptr ptr;
for ( it = list.begin(); it != list.end(); ++it ) {
ptr = *it;
- kdDebug() << QString("LIBRARY: '%1', NAME: '%2', ICON: '%3', COMMENT: '%4'\n")
+ kdDebug() << TQString("LIBRARY: '%1', NAME: '%2', ICON: '%3', COMMENT: '%4'\n")
.arg(ptr->library()).arg(ptr->name()).arg(ptr->icon()).arg(ptr->comment());
- QString iconName = ptr->icon();
+ TQString iconName = ptr->icon();
if (iconName.isEmpty())
iconName = KMOBILE_ICON_UNKNOWN;
- QPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Desktop );
+ TQPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Desktop );
- QIconViewItem *item;
- item = new QIconViewItem( dialog->iconView, ptr->name(), pm );
+ TQIconViewItem *item;
+ item = new TQIconViewItem( dialog->iconView, ptr->name(), pm );
//if (!ptr->comment().isNull())
- // QToolTip::add(item->pixmap(), ptr->comment() );
+ // TQToolTip::add(item->pixmap(), ptr->comment() );
}
int index = -1;
- if (dialog->exec() == QDialog::Accepted)
+ if (dialog->exec() == TQDialog::Accepted)
index = dialog->iconView->currentItem()->index(); // get index of selected item
delete dialog;
@@ -300,7 +300,7 @@ void KMobile::addDevice()
// add the new device to the list
if (!m_view->addNewDevice(m_config, ptr)) {
KMessageBox::error(this,
- QString("<qt>KMobile could not load the <b>%1</b> Device Driver.<p>"
+ TQString("<qt>KMobile could not load the <b>%1</b> Device Driver.<p>"
"Please use the Skeleton- or Gnokii Device Driver during development.<p>"
"This driver will still be visible, but you won't be able to access it "
"from Konqueror or any other application.</qt>").arg(ptr->name()),
@@ -315,7 +315,7 @@ void KMobile::addDevice()
* show dialog to user, in which he may choose and select one of the already
* configured mobile devices.
*/
-KMobileDevice * KMobileFactory::chooseDeviceDialog( QWidget *parent,
+KMobileDevice * KMobileFactory::chooseDeviceDialog( TQWidget *parent,
enum KMobileDevice::ClassType /*type*/, enum KMobileDevice::Capabilities /*caps*/ )
{
int num;
@@ -344,11 +344,11 @@ KMobileDevice * KMobileFactory::chooseDeviceDialog( QWidget *parent,
if (!dialog)
return 0L;
- dialog->addButton->connect( dialog->addButton, SIGNAL(clicked()), this, SLOT(slotAddDevice()) );
- dialog->iconView->connect( dialog->iconView, SIGNAL(doubleClicked(QIconViewItem*)),
- dialog, SLOT(accept()) );
- dialog->selectButton->connect( dialog->selectButton, SIGNAL(clicked()), dialog, SLOT(accept()) );
- dialog->cancelButton->connect( dialog->cancelButton, SIGNAL(clicked()), dialog, SLOT(reject()) );
+ dialog->addButton->connect( dialog->addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddDevice()) );
+ dialog->iconView->connect( dialog->iconView, TQT_SIGNAL(doubleClicked(TQIconViewItem*)),
+ dialog, TQT_SLOT(accept()) );
+ dialog->selectButton->connect( dialog->selectButton, TQT_SIGNAL(clicked()), dialog, TQT_SLOT(accept()) );
+ dialog->cancelButton->connect( dialog->cancelButton, TQT_SIGNAL(clicked()), dialog, TQT_SLOT(reject()) );
for (int i=0; i<countDevices(); i++) {
KService::Ptr ptr;
@@ -356,21 +356,21 @@ KMobileDevice * KMobileFactory::chooseDeviceDialog( QWidget *parent,
if (!ptr)
continue;
- // kdDebug() << QString("LIBRARY: '%1', NAME: '%2', ICON: '%3', COMMENT: '%4' #%5\n")
+ // kdDebug() << TQString("LIBRARY: '%1', NAME: '%2', ICON: '%3', COMMENT: '%4' #%5\n")
// .arg(ptr->library()).arg(ptr->name()).arg(ptr->icon()).arg(ptr->comment()).arg(i);
- QString iconName = ptr->icon();
+ TQString iconName = ptr->icon();
if (iconName.isEmpty())
iconName = KMOBILE_ICON_UNKNOWN;
- QPixmap pm( ::locate("icon", iconName+".png") );
+ TQPixmap pm( ::locate("icon", iconName+".png") );
- QIconViewItem *item;
- item = new QIconViewItem( dialog->iconView, ptr->name(), pm );
+ TQIconViewItem *item;
+ item = new TQIconViewItem( dialog->iconView, ptr->name(), pm );
}
int index = -1;
- if (dialog->exec() == QDialog::Accepted)
+ if (dialog->exec() == TQDialog::Accepted)
index = dialog->iconView->currentItem()->index(); // get index of selected item
delete dialog;
@@ -385,7 +385,7 @@ KMobileDevice * KMobileFactory::chooseDeviceDialog( QWidget *parent,
void KMobile::removeDevice()
{
// remove the current selected device
- QIconViewItem *item = m_view->currentItem();
+ TQIconViewItem *item = m_view->currentItem();
if (item)
m_view->removeDevice( item->text() );
}
@@ -393,12 +393,12 @@ void KMobile::removeDevice()
void KMobile::configDevice()
{
// configure the current selected device
- QIconViewItem *item = m_view->currentItem();
+ TQIconViewItem *item = m_view->currentItem();
if (item)
m_view->configDevice( item->text() );
}
-void KMobile::changeStatusbar(const QString& text)
+void KMobile::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);