diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:36:38 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-19 19:42:51 +0200 |
commit | a177b05ccc4f6a94c52944e4015831d766058b0e (patch) | |
tree | b5b19a92c4080c992565ef3e07b55322ae3df020 /kommander/editor/formwindow.cpp | |
parent | 1e3f84a3c7f28cbd80c26f770055bca0dfebafbd (diff) | |
download | tdewebdev-a177b05ccc4f6a94c52944e4015831d766058b0e.tar.gz tdewebdev-a177b05ccc4f6a94c52944e4015831d766058b0e.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 9445f97b426e97c6ce46de18fba4030da45d56df)
Diffstat (limited to 'kommander/editor/formwindow.cpp')
-rw-r--r-- | kommander/editor/formwindow.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kommander/editor/formwindow.cpp b/kommander/editor/formwindow.cpp index 7e9a3b39..50be9f1d 100644 --- a/kommander/editor/formwindow.cpp +++ b/kommander/editor/formwindow.cpp @@ -212,7 +212,7 @@ void FormWindow::paintGrid(TQWidget *w, TQPaintEvent *e) grid_name.sprintf("FormWindowGrid_%d_%d", mainWindow()->grid().x(), mainWindow()->grid().y()); if(!TQPixmapCache::find(grid_name, grid)) { grid = TQPixmap(350 + (350 % mainWindow()->grid().x()), 350 + (350 % mainWindow()->grid().y())); - grid.fill(tqcolorGroup().color(TQColorGroup::Foreground)); + grid.fill(colorGroup().color(TQColorGroup::Foreground)); TQBitmap mask(grid.width(), grid.height()); mask.fill(color0); TQPainter p(&mask); @@ -267,7 +267,7 @@ TQPoint FormWindow::gridPoint(const TQPoint &p) void FormWindow::drawSizePreview(const TQPoint &pos, const TQString& text) { unclippedPainter->save(); - unclippedPainter->setPen(TQPen(tqcolorGroup().foreground(), 1 )); + unclippedPainter->setPen(TQPen(colorGroup().foreground(), 1 )); unclippedPainter->setRasterOp(CopyROP); if (!sizePreviewPixmap.isNull()) unclippedPainter->drawPixmap(sizePreviewPos, sizePreviewPixmap); @@ -345,8 +345,8 @@ void FormWindow::insertWidget() r = TQRect(p, r.size()); if (useSizeHint) { - r.setWidth(w->tqsizeHint().width()); - r.setHeight(w->tqsizeHint().height()); + r.setWidth(w->sizeHint().width()); + r.setHeight(w->sizeHint().height()); } if (r.width() < 2 * grid().x()) @@ -753,7 +753,7 @@ void FormWindow::handleMouseMove(TQMouseEvent *e, TQWidget *w) targetContainer = wa; hadOwnPalette = wa->ownPalette(); restorePalette = wa->palette(); - wa->setPaletteBackgroundColor(wa->tqcolorGroup().midlight()); + wa->setPaletteBackgroundColor(wa->colorGroup().midlight()); } } else if (targetContainer) @@ -1820,11 +1820,11 @@ void FormWindow::checkAccels() { TQWidget *w = (TQWidget *) o; const TQMetaProperty *text = - w->tqmetaObject()->property(w->tqmetaObject()->findProperty("text", true), true); + w->metaObject()->property(w->metaObject()->findProperty("text", true), true); const TQMetaProperty *title = - w->tqmetaObject()->property(w->tqmetaObject()->findProperty("title", true), true); + w->metaObject()->property(w->metaObject()->findProperty("title", true), true); const TQMetaProperty *pageTitle = - w->tqmetaObject()->property(w->tqmetaObject()->findProperty("pageTitle", true), true); + w->metaObject()->property(w->metaObject()->findProperty("pageTitle", true), true); if (text) find_accel(w->property("text").toString(), accels, w); if (title) |