summaryrefslogtreecommitdiffstats
path: root/konversation/src/quickbuttons_preferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/quickbuttons_preferences.cpp')
-rw-r--r--konversation/src/quickbuttons_preferences.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/konversation/src/quickbuttons_preferences.cpp b/konversation/src/quickbuttons_preferences.cpp
index 3dabf68..564e1ee 100644
--- a/konversation/src/quickbuttons_preferences.cpp
+++ b/konversation/src/quickbuttons_preferences.cpp
@@ -13,9 +13,9 @@
#include "quickbuttons_preferences.h"
#include "config/preferences.h"
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qheader.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqheader.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -25,7 +25,7 @@
#include <klistview.h>
-QuickButtons_Config::QuickButtons_Config(QWidget* parent, const char* name)
+QuickButtons_Config::QuickButtons_Config(TQWidget* parent, const char* name)
: QuickButtons_ConfigUI(parent, name)
{
// reset flag to defined state (used to block signals when just selecting a new item)
@@ -38,15 +38,15 @@ QuickButtons_Config::QuickButtons_Config(QWidget* parent, const char* name)
buttonListView->setSorting(-1,false);
buttonListView->header()->setMovingEnabled(false);
- connect(buttonListView,SIGNAL (selectionChanged(QListViewItem*)),this,SLOT (entrySelected(QListViewItem*)) );
- connect(buttonListView,SIGNAL (clicked(QListViewItem*)),this,SLOT (entrySelected(QListViewItem*)) );
- connect(buttonListView,SIGNAL (moved()),this,SIGNAL (modified()) );
+ connect(buttonListView,TQT_SIGNAL (selectionChanged(TQListViewItem*)),this,TQT_SLOT (entrySelected(TQListViewItem*)) );
+ connect(buttonListView,TQT_SIGNAL (clicked(TQListViewItem*)),this,TQT_SLOT (entrySelected(TQListViewItem*)) );
+ connect(buttonListView,TQT_SIGNAL (moved()),this,TQT_SIGNAL (modified()) );
- connect(nameInput,SIGNAL (textChanged(const QString&)),this,SLOT (nameChanged(const QString&)) );
- connect(actionInput,SIGNAL (textChanged(const QString&)),this,SLOT (actionChanged(const QString&)) );
+ connect(nameInput,TQT_SIGNAL (textChanged(const TQString&)),this,TQT_SLOT (nameChanged(const TQString&)) );
+ connect(actionInput,TQT_SIGNAL (textChanged(const TQString&)),this,TQT_SLOT (actionChanged(const TQString&)) );
- connect(newButton,SIGNAL (clicked()),this,SLOT (addEntry()));
- connect(removeButton,SIGNAL (clicked()),this,SLOT (removeEntry()));
+ connect(newButton,TQT_SIGNAL (clicked()),this,TQT_SLOT (addEntry()));
+ connect(removeButton,TQT_SIGNAL (clicked()),this,TQT_SLOT (removeEntry()));
}
QuickButtons_Config::~QuickButtons_Config()
@@ -62,7 +62,7 @@ void QuickButtons_Config::loadSettings()
}
// fill listview with button definitions
-void QuickButtons_Config::setButtonsListView(const QStringList &buttonList)
+void QuickButtons_Config::setButtonsListView(const TQStringList &buttonList)
{
// clear listView
buttonListView->clear();
@@ -70,7 +70,7 @@ void QuickButtons_Config::setButtonsListView(const QStringList &buttonList)
for(unsigned int index=buttonList.count();index!=0;index--)
{
// get button definition
- QString definition=buttonList[index-1];
+ TQString definition=buttonList[index-1];
// cut definition apart in name and action, and create a new listview item
new KListViewItem(buttonListView,definition.section(',',0,0),definition.section(',',1));
} // for
@@ -89,7 +89,7 @@ void QuickButtons_Config::saveSettings()
config->setGroup("Button List");
// create empty list
- QStringList newList=currentButtonList();
+ TQStringList newList=currentButtonList();
// check if there are any quick buttons in the list view
if(newList.count())
@@ -98,13 +98,13 @@ void QuickButtons_Config::saveSettings()
for(unsigned int index=0;index<newList.count();index++)
{
// write the current button's name and definition
- config->writeEntry(QString("Button%1").arg(index),newList[index]);
+ config->writeEntry(TQString("Button%1").arg(index),newList[index]);
} // for
}
// if there were no buttons at all, write a dummy entry to prevent KConfigXT from "optimizing"
// the group out, which would in turn make konvi restore the default buttons
else
- config->writeEntry("Empty List",QString());
+ config->writeEntry("Empty List",TQString());
// set internal button list
Preferences::setQuickButtonList(newList);
@@ -118,12 +118,12 @@ void QuickButtons_Config::restorePageToDefaults()
setButtonsListView(Preferences::defaultQuickButtonList());
}
-QStringList QuickButtons_Config::currentButtonList()
+TQStringList QuickButtons_Config::currentButtonList()
{
// get first item of the button listview
- QListViewItem* item=buttonListView->firstChild();
+ TQListViewItem* item=buttonListView->firstChild();
// create empty list
- QStringList newList;
+ TQStringList newList;
// go through all items and save them into the configuration
while(item)
@@ -146,7 +146,7 @@ bool QuickButtons_Config::hasChanged()
// slots
// what to do when the user selects an item
-void QuickButtons_Config::entrySelected(QListViewItem* quickButtonEntry)
+void QuickButtons_Config::entrySelected(TQListViewItem* quickButtonEntry)
{
// play it safe, assume disabling all widgets first
bool enabled=false;
@@ -174,10 +174,10 @@ void QuickButtons_Config::entrySelected(QListViewItem* quickButtonEntry)
}
// what to do when the user change the name of a quick button
-void QuickButtons_Config::nameChanged(const QString& newName)
+void QuickButtons_Config::nameChanged(const TQString& newName)
{
// get possible first selected item
- QListViewItem* item=buttonListView->selectedItem();
+ TQListViewItem* item=buttonListView->selectedItem();
// sanity check
if(item)
@@ -190,10 +190,10 @@ void QuickButtons_Config::nameChanged(const QString& newName)
}
// what to do when the user change the action definition of a quick button
-void QuickButtons_Config::actionChanged(const QString& newAction)
+void QuickButtons_Config::actionChanged(const TQString& newAction)
{
// get possible first selected item
- QListViewItem* item=buttonListView->selectedItem();
+ TQListViewItem* item=buttonListView->selectedItem();
// sanity check
if(item)
@@ -209,7 +209,7 @@ void QuickButtons_Config::actionChanged(const QString& newAction)
void QuickButtons_Config::addEntry()
{
// add new item at the bottom of list view
- KListViewItem* newItem=new KListViewItem(buttonListView,buttonListView->lastChild(),i18n("New"),QString());
+ KListViewItem* newItem=new KListViewItem(buttonListView,buttonListView->lastChild(),i18n("New"),TQString());
// if successful ...
if(newItem)
{
@@ -229,13 +229,13 @@ void QuickButtons_Config::addEntry()
void QuickButtons_Config::removeEntry()
{
// get possible first selected item
- QListViewItem* item=buttonListView->selectedItem();
+ TQListViewItem* item=buttonListView->selectedItem();
// sanity check
if(item)
{
// get item below the current one
- QListViewItem* nextItem=item->itemBelow();
+ TQListViewItem* nextItem=item->itemBelow();
// if there was none, get the one above
if(!nextItem) nextItem=item->itemAbove();