Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent 8b2f9e86eb
commit 8b42860dc0

@ -59,7 +59,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -588,7 +588,7 @@ PostScript</string>
</property> </property>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -620,7 +620,7 @@ PostScript</string>
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -2446,7 +2446,7 @@ pixels in the input</string>
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -2541,7 +2541,7 @@ pixels in the input</string>
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -2607,7 +2607,7 @@ pixels in the input</string>
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -286,7 +286,7 @@ void MainWidget::fileClose() {
void MainWidget::cut() { void MainWidget::cut() {
if(originalLabel->pixmap()!=0) if(originalLabel->pixmap()!=0)
{ {
TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
fileClose(); fileClose();
} }
} }
@ -294,12 +294,12 @@ void MainWidget::cut() {
void MainWidget::copy() { void MainWidget::copy() {
if(originalLabel->pixmap()!=0) if(originalLabel->pixmap()!=0)
{ {
TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap()))); TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
} }
} }
void MainWidget::paste() { void MainWidget::paste() {
TQPixmap clip=TQApplication::tqclipboard()->pixmap(); TQPixmap clip=TQApplication::clipboard()->pixmap();
if(!clip.isNull()) if(!clip.isNull())
{ {
if(!createTmpFilename()) if(!createTmpFilename())
@ -309,7 +309,7 @@ void MainWidget::paste() {
} }
m_outputFilename=""; m_outputFilename="";
TQPixmap pix(TQApplication::tqclipboard()->pixmap()); TQPixmap pix(TQApplication::clipboard()->pixmap());
originalLabel->clear(); originalLabel->clear();
originalLabel->setGeometry(0,0,pix.width(),pix.height()); originalLabel->setGeometry(0,0,pix.width(),pix.height());
originalLabel->setPixmap(pix); originalLabel->setPixmap(pix);

Loading…
Cancel
Save