diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:29 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:29 -0600 |
commit | fc33ee27759530d7e9646400d34ab135e574f52b (patch) | |
tree | cffcdcc9afd591f1d9917470e6f53c2fc4281514 | |
parent | c80bd20bece6f217d33b1338912f9aa92006ad5d (diff) | |
download | potracegui-fc33ee27759530d7e9646400d34ab135e574f52b.tar.gz potracegui-fc33ee27759530d7e9646400d34ab135e574f52b.zip |
Rename a number of old tq methods that are no longer tq specific
-rw-r--r-- | src/MainWidgetBase.ui | 62 | ||||
-rw-r--r-- | src/mainwidget.cpp | 28 | ||||
-rw-r--r-- | src/mainwidget.h | 2 | ||||
-rw-r--r-- | src/potracegui.cpp | 2 |
4 files changed, 47 insertions, 47 deletions
diff --git a/src/MainWidgetBase.ui b/src/MainWidgetBase.ui index d1d1323..93cf508 100644 --- a/src/MainWidgetBase.ui +++ b/src/MainWidgetBase.ui @@ -37,7 +37,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="tqmaximumSize"> + <property name="maximumSize"> <size> <width>800</width> <height>600</height> @@ -59,7 +59,7 @@ </widget> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout7</cstring> + <cstring>layout7</cstring> </property> <vbox> <property name="name"> @@ -588,7 +588,7 @@ PostScript</string> </property> <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> - <cstring>tqlayout3</cstring> + <cstring>layout3</cstring> </property> <vbox> <property name="name"> @@ -620,7 +620,7 @@ PostScript</string> </widget> <widget class="TQLayoutWidget" row="0" column="1"> <property name="name"> - <cstring>tqlayout4</cstring> + <cstring>layout4</cstring> </property> <grid> <property name="name"> @@ -735,7 +735,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>40</height> @@ -752,7 +752,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>40</height> @@ -769,7 +769,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> @@ -786,7 +786,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> @@ -806,7 +806,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>16</height> @@ -836,7 +836,7 @@ PostScript</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>297</height> @@ -1092,7 +1092,7 @@ decomposition</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>80</width> <height>31</height> @@ -1109,7 +1109,7 @@ decomposition</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>80</width> <height>31</height> @@ -1154,7 +1154,7 @@ decomposition</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>80</width> <height>31</height> @@ -1195,7 +1195,7 @@ decomposition</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>80</width> <height>31</height> @@ -1405,7 +1405,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>40</height> @@ -1435,7 +1435,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>270</height> @@ -1579,7 +1579,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>71</width> <height>21</height> @@ -1596,7 +1596,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>71</width> <height>21</height> @@ -1613,7 +1613,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>71</width> <height>21</height> @@ -1630,7 +1630,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>71</width> <height>21</height> @@ -1950,7 +1950,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>30</height> @@ -2100,7 +2100,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -2342,7 +2342,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>110</height> @@ -2446,7 +2446,7 @@ pixels in the input</string> </widget> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout6</cstring> + <cstring>layout6</cstring> </property> <hbox> <property name="name"> @@ -2462,7 +2462,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> @@ -2513,7 +2513,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> @@ -2532,7 +2532,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>16</height> @@ -2541,7 +2541,7 @@ pixels in the input</string> </spacer> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout3</cstring> + <cstring>layout3</cstring> </property> <hbox> <property name="name"> @@ -2557,7 +2557,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>113</width> <height>20</height> @@ -2585,7 +2585,7 @@ pixels in the input</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>60</width> <height>20</height> @@ -2607,7 +2607,7 @@ pixels in the input</string> </widget> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout2</cstring> + <cstring>layout2</cstring> </property> <hbox> <property name="name"> diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp index 03cca92..202f447 100644 --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -140,7 +140,7 @@ void MainWidget::fileSave() { { int res; if(TQFile::exists(saveFilename)) - res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").tqarg(saveFilename)); + res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").arg(saveFilename)); else { salva=true; @@ -165,14 +165,14 @@ void MainWidget::fileSave() { emit signalChangeStatusbar(i18n(i18n("Error while saving file"))); return; } - emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename)); char ch; while(in.get(ch)) out.put(ch); in.close(); out.close(); m_changed=false; - emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename)); } else emit signalChangeStatusbar(i18n("File not saved")); @@ -186,14 +186,14 @@ void MainWidget::fileSave() { emit signalChangeStatusbar(i18n("Error while saving file")); return; } - emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename)); char ch; while(in.get(ch)) out.put(ch); in.close(); out.close(); - emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename)); m_changed=false; } } @@ -226,7 +226,7 @@ void MainWidget::fileSaveAs() { { int res; if(TQFile::exists(saveFilename)) - res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").tqarg(saveFilename)); + res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").arg(saveFilename)); else { salva=true; @@ -251,14 +251,14 @@ void MainWidget::fileSaveAs() { emit signalChangeStatusbar(i18n("Error while saving file")); return; } - emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename)); char ch; while(in.get(ch)) out.put(ch); in.close(); out.close(); m_changed=false; - emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); + emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename)); } else emit signalChangeStatusbar(i18n("File not saved")); @@ -286,7 +286,7 @@ void MainWidget::fileClose() { void MainWidget::cut() { if(originalLabel->pixmap()!=0) { - TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); + TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); fileClose(); } } @@ -294,12 +294,12 @@ void MainWidget::cut() { void MainWidget::copy() { if(originalLabel->pixmap()!=0) { - TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); + TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); } } void MainWidget::paste() { - TQPixmap clip=TQApplication::tqclipboard()->pixmap(); + TQPixmap clip=TQApplication::clipboard()->pixmap(); if(!clip.isNull()) { if(!createTmpFilename()) @@ -309,7 +309,7 @@ void MainWidget::paste() { } m_outputFilename=""; - TQPixmap pix(TQApplication::tqclipboard()->pixmap()); + TQPixmap pix(TQApplication::clipboard()->pixmap()); originalLabel->clear(); originalLabel->setGeometry(0,0,pix.width(),pix.height()); originalLabel->setPixmap(pix); @@ -366,7 +366,7 @@ void MainWidget::getImageFromURL(KURL url) { previewLabel->clear(); previewLabel->setGeometry(0,0,10,10); imagesTabs->setCurrentPage(0); - emit signalChangeStatusbar(i18n("File %1 loaded.").tqarg(filename)); + emit signalChangeStatusbar(i18n("File %1 loaded.").arg(filename)); if (!url.isLocalFile()) KIO::NetAccess::removeTempFile(filename); @@ -879,7 +879,7 @@ void MainWidget::tracerExited() { setCursor(ArrowCursor); return; } - if(tracer.exitqStatus()!=0) + if(tracer.exiStatus()!=0) { emit(signalChangeStatusbar(i18n("Finished with errors"))); TQString tmp(i18n("Error during the process:")); diff --git a/src/mainwidget.h b/src/mainwidget.h index 4c4aeae..03788f3 100644 --- a/src/mainwidget.h +++ b/src/mainwidget.h @@ -27,7 +27,7 @@ #include <tqprocess.h> #include <tqstringlist.h> #include <tqpixmap.h> -#include <tqclipboard.h> +#include <clipboard.h> #include <tqevent.h> #include <tqlabel.h> diff --git a/src/potracegui.cpp b/src/potracegui.cpp index 815bbb7..bfedb0b 100644 --- a/src/potracegui.cpp +++ b/src/potracegui.cpp @@ -22,7 +22,7 @@ #include "mainwidget.h" #include <tqlabel.h> -#include <tqclipboard.h> +#include <clipboard.h> #include <kmainwindow.h> #include <klocale.h> |