summaryrefslogtreecommitdiffstats
path: root/tdewallet/kwmapeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdewallet/kwmapeditor.cpp')
-rw-r--r--tdewallet/kwmapeditor.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tdewallet/kwmapeditor.cpp b/tdewallet/kwmapeditor.cpp
index a6c09b4..3e5c5b5 100644
--- a/tdewallet/kwmapeditor.cpp
+++ b/tdewallet/kwmapeditor.cpp
@@ -34,10 +34,10 @@
KWMapEditor::KWMapEditor(TQMap<TQString,TQString>& map, TQWidget *parent, const char *name)
: TQTable(0, 3, parent, name), _map(map) {
_ac = new TDEActionCollection(this);
- _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&)));
+ _copyAct = KStdAction::copy(this, TQ_SLOT(copy()), _ac);
+ connect(this, TQ_SIGNAL(valueChanged(int,int)), this, TQ_SIGNAL(dirty()));
+ connect(this, TQ_SIGNAL(contextMenuRequested(int,int,const TQPoint&)),
+ this, TQ_SLOT(contextMenu(int,int,const TQPoint&)));
setSelectionMode(TQTable::NoSelection);
horizontalHeader()->setLabel(0, TQString());
horizontalHeader()->setLabel(1, i18n("Key"));
@@ -57,7 +57,7 @@ void KWMapEditor::reload() {
insertRows(row, _map.count() - row);
for (int x = row; x < numRows(); ++x) {
TQPushButton *b = new TQPushButton("X", this);
- connect(b, TQT_SIGNAL(clicked()), this, TQT_SLOT(erase()));
+ connect(b, TQ_SIGNAL(clicked()), this, TQ_SLOT(erase()));
setCellWidget(x, 0, b);
}
}
@@ -76,9 +76,9 @@ KWMapEditor::~KWMapEditor() {
void KWMapEditor::erase() {
- const TQObject *o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
+ const TQObject *o = sender();
for (int i = 0; i < numRows(); i++) {
- if (TQT_BASE_OBJECT_CONST(cellWidget(i, 0)) == TQT_BASE_OBJECT_CONST(o)) {
+ if (cellWidget(i, 0) == o) {
removeRow(i);
break;
}
@@ -101,7 +101,7 @@ void KWMapEditor::addEntry() {
int x = numRows();
insertRows(x, 1);
TQPushButton *b = new TQPushButton("X", this);
- connect(b, TQT_SIGNAL(clicked()), this, TQT_SLOT(erase()));
+ connect(b, TQ_SIGNAL(clicked()), this, TQ_SLOT(erase()));
setCellWidget(x, 0, b);
ensureCellVisible(x, 1);
setCurrentCell(x, 1);
@@ -118,7 +118,7 @@ void KWMapEditor::contextMenu(int row, int col, const TQPoint& pos) {
_contextRow = row;
_contextCol = col;
TDEPopupMenu *m = new TDEPopupMenu(this);
- m->insertItem(i18n("&New Entry"), this, TQT_SLOT(addEntry()));
+ m->insertItem(i18n("&New Entry"), this, TQ_SLOT(addEntry()));
_copyAct->plug(m);
m->popup(pos);
}
@@ -135,7 +135,7 @@ class InlineEditor : public TQTextEdit {
: TQTextEdit(), _p(p), row(row), col(col) {
setWFlags(WStyle_NoBorder | WDestructiveClose);
KWin::setType(winId(), NET::Override);
- connect(p, TQT_SIGNAL(destroyed()), TQT_SLOT(close()));
+ connect(p, TQ_SIGNAL(destroyed()), TQ_SLOT(close()));
}
virtual ~InlineEditor() { if (!_p) return; _p->setText(row, col, text()); _p->emitDirty(); }