summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:06:46 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-08-01 18:57:40 +0200
commit017995b45fa884113d5a90c9625068ab06b69fa9 (patch)
tree80d2ea638763d8af0743e5afd8d6b674fafc8780
parent55f7ca24b7475783b25eeac49b5165df19328991 (diff)
downloadpotracegui-017995b45fa884113d5a90c9625068ab06b69fa9.tar.gz
potracegui-017995b45fa884113d5a90c9625068ab06b69fa9.zip
Rename obsolete tq methods to standard names
(cherry picked from commit 8b42860dc028739f76f0e4827a545e171ad08c8e)
-rw-r--r--src/MainWidgetBase.ui12
-rw-r--r--src/mainwidget.cpp8
2 files changed, 10 insertions, 10 deletions
diff --git a/src/MainWidgetBase.ui b/src/MainWidgetBase.ui
index fa5732b..93cf508 100644
--- a/src/MainWidgetBase.ui
+++ b/src/MainWidgetBase.ui
@@ -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">
@@ -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">
@@ -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">
@@ -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 a813fd3..351dbb7 100644
--- a/src/mainwidget.cpp
+++ b/src/mainwidget.cpp
@@ -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);