diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:33:07 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:33:07 -0600 |
commit | 805c2821ceaddada48b346c6d11bd0dc1351a539 (patch) | |
tree | f4f34d4fae6b86d1b1058f396da4729906edbadb /src/modules/filetransferwindow | |
parent | 918c3ff07736f0c343cb190d3f0df99e4cb8dab8 (diff) | |
download | kvirc-805c2821ceaddada48b346c6d11bd0dc1351a539.tar.gz kvirc-805c2821ceaddada48b346c6d11bd0dc1351a539.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/modules/filetransferwindow')
-rw-r--r-- | src/modules/filetransferwindow/filetransferwindow.cpp | 20 | ||||
-rw-r--r-- | src/modules/filetransferwindow/filetransferwindow.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/filetransferwindow/filetransferwindow.cpp b/src/modules/filetransferwindow/filetransferwindow.cpp index f6068378..ab441a47 100644 --- a/src/modules/filetransferwindow/filetransferwindow.cpp +++ b/src/modules/filetransferwindow/filetransferwindow.cpp @@ -46,7 +46,7 @@ #endif #include <tqpainter.h> #include <tqmessagebox.h> -#include <tqclipboard.h> +#include <clipboard.h> #include <tqfileinfo.h> #include <tqfile.h> #include <tqlabel.h> @@ -233,7 +233,7 @@ void KviFileTransferWindow::tipRequest(KviDynamicToolTip * tip,const TQPoint &pn KviFileTransferItem * it = (KviFileTransferItem *)m_pListView->itemAt(pnt); if(!it)return; TQString txt = it->transfer()->tipText(); - tip->tip(m_pListView->tqitemRect(it),txt); + tip->tip(m_pListView->itemRect(it),txt); } void KviFileTransferWindow::fillTransferView() @@ -313,7 +313,7 @@ void KviFileTransferWindow::rightButtonPressed(KviTalListViewItem *it,const TQPo if(fi.exists()) { tmp += "<nobr>"; - tmp += __tr2qs_ctx("Size: %1","filetransferwindow").tqarg(KviTQString::makeSizeReadable(fi.size())); + tmp += __tr2qs_ctx("Size: %1","filetransferwindow").arg(KviTQString::makeSizeReadable(fi.size())); tmp += "</nobr><br>"; } @@ -580,12 +580,12 @@ void KviFileTransferWindow::copyLocalFileToClipboard() TQString tmp = t->localFileName(); if(tmp.isEmpty())return; #ifdef COMPILE_USE_QT4 - TQApplication::tqclipboard()->setText(tmp); + TQApplication::clipboard()->setText(tmp); #else - TQApplication::tqclipboard()->setSelectionMode(false); - TQApplication::tqclipboard()->setText(tmp); - TQApplication::tqclipboard()->setSelectionMode(true); - TQApplication::tqclipboard()->setText(tmp); + TQApplication::clipboard()->setSelectionMode(false); + TQApplication::clipboard()->setText(tmp); + TQApplication::clipboard()->setSelectionMode(true); + TQApplication::clipboard()->setText(tmp); #endif } @@ -701,9 +701,9 @@ void KviFileTransferWindow::resizeEvent(TQResizeEvent *e) m_pInput->setGeometry(0,height() - h,width(),h); } -TQSize KviFileTransferWindow::tqsizeHint() const +TQSize KviFileTransferWindow::sizeHint() const { - return m_pSplitter->tqsizeHint(); + return m_pSplitter->sizeHint(); } void KviFileTransferWindow::fillCaptionBuffers() diff --git a/src/modules/filetransferwindow/filetransferwindow.h b/src/modules/filetransferwindow/filetransferwindow.h index 963c12e0..b213f6be 100644 --- a/src/modules/filetransferwindow/filetransferwindow.h +++ b/src/modules/filetransferwindow/filetransferwindow.h @@ -88,7 +88,7 @@ protected: virtual void fontChange(const TQFont &oldFont); bool eventFilter( TQObject *obj, TQEvent *ev ); public: - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; int lineSpacing(){ return m_iLineSpacing; }; protected slots: void transferRegistered(KviFileTransfer *t); |