diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kpmainwindow_image.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpmainwindow_image.cpp')
-rw-r--r-- | kolourpaint/kpmainwindow_image.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kolourpaint/kpmainwindow_image.cpp b/kolourpaint/kpmainwindow_image.cpp index 7f662af7..a00f0fd3 100644 --- a/kolourpaint/kpmainwindow_image.cpp +++ b/kolourpaint/kpmainwindow_image.cpp @@ -29,8 +29,8 @@ #include <kpmainwindow.h> #include <kpmainwindow_p.h> -#include <qcolor.h> -#include <qsize.h> +#include <tqcolor.h> +#include <tqsize.h> #include <kaction.h> #include <kapplication.h> @@ -77,7 +77,7 @@ bool kpMainWindow::isTextSelection () const // private -QString kpMainWindow::autoCropText () const +TQString kpMainWindow::autoCropText () const { return kpToolAutoCropCommand::name (isSelectionActive (), kpToolAutoCropCommand::ShowAccel); @@ -90,37 +90,37 @@ void kpMainWindow::setupImageMenuActions () KActionCollection *ac = actionCollection (); m_actionResizeScale = new KAction (i18n ("R&esize / Scale..."), Qt::CTRL + Qt::Key_E, - this, SLOT (slotResizeScale ()), ac, "image_resize_scale"); + this, TQT_SLOT (slotResizeScale ()), ac, "image_resize_scale"); m_actionCrop = new KAction (i18n ("Se&t as Image (Crop)"), Qt::CTRL + Qt::Key_T, - this, SLOT (slotCrop ()), ac, "image_crop"); + this, TQT_SLOT (slotCrop ()), ac, "image_crop"); m_actionAutoCrop = new KAction (autoCropText (), Qt::CTRL + Qt::Key_U, - this, SLOT (slotAutoCrop ()), ac, "image_auto_crop"); + this, TQT_SLOT (slotAutoCrop ()), ac, "image_auto_crop"); m_actionFlip = new KAction (i18n ("&Flip..."), Qt::CTRL + Qt::Key_F, - this, SLOT (slotFlip ()), ac, "image_flip"); + this, TQT_SLOT (slotFlip ()), ac, "image_flip"); m_actionRotate = new KAction (i18n ("&Rotate..."), Qt::CTRL + Qt::Key_R, - this, SLOT (slotRotate ()), ac, "image_rotate"); + this, TQT_SLOT (slotRotate ()), ac, "image_rotate"); m_actionSkew = new KAction (i18n ("S&kew..."), Qt::CTRL + Qt::Key_K, - this, SLOT (slotSkew ()), ac, "image_skew"); + this, TQT_SLOT (slotSkew ()), ac, "image_skew"); m_actionConvertToBlackAndWhite = new KAction (i18n ("Reduce to Mo&nochrome (Dithered)"), 0, - this, SLOT (slotConvertToBlackAndWhite ()), ac, "image_convert_to_black_and_white"); + this, TQT_SLOT (slotConvertToBlackAndWhite ()), ac, "image_convert_to_black_and_white"); m_actionConvertToGrayscale = new KAction (i18n ("Reduce to &Grayscale"), 0, - this, SLOT (slotConvertToGrayscale ()), ac, "image_convert_to_grayscale"); + this, TQT_SLOT (slotConvertToGrayscale ()), ac, "image_convert_to_grayscale"); m_actionInvertColors = new KAction (i18n ("&Invert Colors"), Qt::CTRL + Qt::Key_I, - this, SLOT (slotInvertColors ()), ac, "image_invert_colors"); + this, TQT_SLOT (slotInvertColors ()), ac, "image_invert_colors"); m_actionClear = new KAction (i18n ("C&lear"), Qt::CTRL + Qt::SHIFT + Qt::Key_N, - this, SLOT (slotClear ()), ac, "image_clear"); + this, TQT_SLOT (slotClear ()), ac, "image_clear"); m_actionMoreEffects = new KAction (i18n ("&More Effects..."), Qt::CTRL + Qt::Key_M, - this, SLOT (slotMoreEffects ()), ac, "image_more_effects"); + this, TQT_SLOT (slotMoreEffects ()), ac, "image_more_effects"); enableImageMenuDocumentActions (false); } @@ -157,10 +157,10 @@ void kpMainWindow::slotImageMenuUpdateDueToSelection () int id = mBar->idAt (index); // SYNC: kolourpaintui.rc - QString menuBarItemTextImage = i18n ("&Image"); - QString menuBarItemTextSelection = i18n ("Select&ion"); + TQString menuBarItemTextImage = i18n ("&Image"); + TQString menuBarItemTextSelection = i18n ("Select&ion"); - const QString menuBarItemText = mBar->text (id); + const TQString menuBarItemText = mBar->text (id); if (menuBarItemText == menuBarItemTextImage || menuBarItemText == menuBarItemTextSelection) { @@ -260,7 +260,7 @@ void kpMainWindow::addImageOrSelectionCommand (kpCommand *cmd, kpMacroCommand *macroCmd = new kpMacroCommand (cmd->name (), this); macroCmd->addCommand (new kpToolSelectionPullFromDocumentCommand ( - QString::null/*uninteresting child of macro cmd*/, + TQString::null/*uninteresting child of macro cmd*/, this)); macroCmd->addCommand (cmd); @@ -308,7 +308,7 @@ void kpMainWindow::slotResizeScale () dialog.type () == kpToolResizeScaleCommand::Resize) { // TODO: this should be the responsibility of kpDocument - saveDefaultDocSize (QSize (dialog.imageWidth (), dialog.imageHeight ())); + saveDefaultDocSize (TQSize (dialog.imageWidth (), dialog.imageHeight ())); } } |