summaryrefslogtreecommitdiffstats
path: root/kwallet/kwmapeditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kwallet/kwmapeditor.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwallet/kwmapeditor.cpp')
-rw-r--r--kwallet/kwmapeditor.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kwallet/kwmapeditor.cpp b/kwallet/kwmapeditor.cpp
index b6cbb50..3051e6c 100644
--- a/kwallet/kwmapeditor.cpp
+++ b/kwallet/kwmapeditor.cpp
@@ -31,15 +31,15 @@
#include <tqpushbutton.h>
#include <tqtextedit.h>
-KWMapEditor::KWMapEditor(TQMap<TQString,TQString>& map, TQWidget *parent, const char *name)
-: TQTable(0, 3, parent, name), _map(map) {
+KWMapEditor::KWMapEditor(TQMap<TQString,TQString>& map, TQWidget *tqparent, const char *name)
+: TQTable(0, 3, tqparent, name), _map(map) {
_ac = new KActionCollection(this);
- _copyAct = KStdAction::copy(this, TQT_SLOT(copy()), _ac);
+ _copyAct = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(copy()), _ac);
connect(this, TQT_SIGNAL(valueChanged(int,int)), this, TQT_SIGNAL(dirty()));
connect(this, TQT_SIGNAL(contextMenuRequested(int,int,const TQPoint&)),
this, TQT_SLOT(contextMenu(int,int,const TQPoint&)));
setSelectionMode(TQTable::NoSelection);
- horizontalHeader()->setLabel(0, TQString::null);
+ horizontalHeader()->setLabel(0, TQString());
horizontalHeader()->setLabel(1, i18n("Key"));
horizontalHeader()->setLabel(2, i18n("Value"));
setColumnWidth(0, 20); // FIXME: this is arbitrary
@@ -76,9 +76,9 @@ KWMapEditor::~KWMapEditor() {
void KWMapEditor::erase() {
- const TQObject *o = sender();
+ const TQObject *o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
for (int i = 0; i < numRows(); i++) {
- if (cellWidget(i, 0) == o) {
+ if (TQT_BASE_OBJECT_CONST(cellWidget(i, 0)) == TQT_BASE_OBJECT_CONST(o)) {
removeRow(i);
break;
}
@@ -125,7 +125,7 @@ void KWMapEditor::contextMenu(int row, int col, const TQPoint& pos) {
void KWMapEditor::copy() {
- TQApplication::clipboard()->setText(text(_contextRow, 2));
+ TQApplication::tqclipboard()->setText(text(_contextRow, 2));
}
@@ -140,9 +140,9 @@ class InlineEditor : public TQTextEdit {
virtual ~InlineEditor() { if (!_p) return; _p->setText(row, col, text()); _p->emitDirty(); }
protected:
- virtual void focusOutEvent(TQFocusEvent*) {
- if (TQFocusEvent::reason() == TQFocusEvent::Popup) {
- TQWidget *focusW = qApp->focusWidget();
+ virtual void focusOutEvent(TQFocusEvent* fe) {
+ if (fe->reason() == TQFocusEvent::Popup) {
+ TQWidget *focusW = tqApp->tqfocusWidget();
if (focusW && focusW == popup) {
return;
}
@@ -150,7 +150,7 @@ class InlineEditor : public TQTextEdit {
close();
}
virtual void keyPressEvent(TQKeyEvent *e) {
- if (e->key() == Qt::Key_Escape) {
+ if (e->key() == TQt::Key_Escape) {
e->accept();
close();
} else {
@@ -168,10 +168,10 @@ class InlineEditor : public TQTextEdit {
};
-TQWidget *KWMapEditor::beginEdit(int row, int col, bool replace) {
+TQWidget *KWMapEditor::beginEdit(int row, int col, bool tqreplace) {
//kdDebug(2300) << "EDIT COLUMN " << col << endl;
if (col != 2) {
- return TQTable::beginEdit(row, col, replace);
+ return TQTable::beginEdit(row, col, tqreplace);
}
TQRect geo = cellGeometry(row, col);