summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_clipboard.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /chalk/ui/kis_clipboard.cc
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'chalk/ui/kis_clipboard.cc')
-rw-r--r--chalk/ui/kis_clipboard.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chalk/ui/kis_clipboard.cc b/chalk/ui/kis_clipboard.cc
index d52f5ec9..7eb3607a 100644
--- a/chalk/ui/kis_clipboard.cc
+++ b/chalk/ui/kis_clipboard.cc
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <tqapplication.h>
-#include <tqclipboard.h>
+#include <clipboard.h>
#include <tqobject.h>
#include <tqimage.h>
#include <tqmessagebox.h>
@@ -52,7 +52,7 @@ KisClipboard::KisClipboard()
clipboardDataChanged();
// Make sure we are notified when clipboard changes
- connect( TQApplication::tqclipboard(), TQT_SIGNAL( dataChanged() ),
+ connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ),
this, TQT_SLOT( clipboardDataChanged() ) );
}
@@ -132,20 +132,20 @@ void KisClipboard::setClip(KisPaintDeviceSP selection)
multiDrag->addDragObject( storeDrag );
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
cb->setData(multiDrag);
m_pushedClipboard = true;
}
KisPaintDeviceSP KisClipboard::clip()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQCString mimeType("application/x-chalk-selection");
TQMimeSource *cbData = cb->data();
if(cbData && cbData->provides(mimeType))
{
- TQBuffer buffer(cbData->tqencodedData(mimeType));
+ TQBuffer buffer(cbData->encodedData(mimeType));
KoStore* store = KoStore::createStore( TQT_TQIODEVICE(&buffer), KoStore::Read, mimeType );
KisProfile *profile=0;
@@ -211,7 +211,7 @@ void KisClipboard::clipboardDataChanged()
{
if (!m_pushedClipboard) {
m_hasClip = false;
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQImage qimg = cb->image();
TQMimeSource *cbData = cb->data();
TQCString mimeType("application/x-chalk-selection");
@@ -235,7 +235,7 @@ bool KisClipboard::hasClip()
TQSize KisClipboard::clipSize()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQCString mimeType("application/x-chalk-selection");
TQMimeSource *cbData = cb->data();
@@ -243,7 +243,7 @@ TQSize KisClipboard::clipSize()
if(cbData && cbData->provides(mimeType)) {
- TQBuffer buffer(cbData->tqencodedData(mimeType));
+ TQBuffer buffer(cbData->encodedData(mimeType));
KoStore* store = KoStore::createStore( TQT_TQIODEVICE(&buffer), KoStore::Read, mimeType );
KisProfile *profile=0;