diff options
author | Timothy Pearson <[email protected]> | 2011-12-21 14:17:29 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-21 14:17:29 -0600 |
commit | 38a31bafc0c0c68b4cb7c0606bac55bbef7c8b69 (patch) | |
tree | 8abdf61ff3720b7056a0cf1bc3bbbcf334252c31 /ksysv | |
parent | 6b7a8ff33a6383be4a9dea3c4225d142aab79b78 (diff) | |
download | tdeadmin-38a31bafc0c0c68b4cb7c0606bac55bbef7c8b69.tar.gz tdeadmin-38a31bafc0c0c68b4cb7c0606bac55bbef7c8b69.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'ksysv')
-rw-r--r-- | ksysv/OldView.cpp | 6 | ||||
-rw-r--r-- | ksysv/TopWidget.cpp | 8 | ||||
-rw-r--r-- | ksysv/kscroller.cpp | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp index efd1878..1f8d454 100644 --- a/ksysv/OldView.cpp +++ b/ksysv/OldView.cpp @@ -856,7 +856,7 @@ void KSVContent::pasteAppend() { KSVData data; - if (KSVDrag::decodeNative (kapp->tqclipboard()->data(), data)) + if (KSVDrag::decodeNative (kapp->clipboard()->data(), data)) { KSVAction* action = 0L; @@ -1074,10 +1074,10 @@ void KSVContent::calcMinSize () h = kMax (h, mRunlevels[i]->sizeHint().height()); } - mContent->tqlayout()->setEnabled(false); + mContent->layout()->setEnabled(false); mContent->setMinimumSize(mMinSize); mScroller->updateScrollBars(); - mContent->tqlayout()->setEnabled(true); + mContent->layout()->setEnabled(true); } void KSVContent::mergeLoadedPackage (TQValueList<KSVData>* start, diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp index 5530f97..181a717 100644 --- a/ksysv/TopWidget.cpp +++ b/ksysv/TopWidget.cpp @@ -508,7 +508,7 @@ void KSVTopLevel::editCut() { if (list && list->currentItem()) { KSVDrag* mime = new KSVDrag (*list->currentItem()->data(), 0L, 0L); - kapp->tqclipboard()->setData (mime); + kapp->clipboard()->setData (mime); KSVData data = *list->currentItem()->data(); delete list->currentItem(); @@ -525,7 +525,7 @@ void KSVTopLevel::editCopy() if (list) { KSVDrag* mime = new KSVDrag (*static_cast<KSVItem*> (list->currentItem()), 0L, 0L); - kapp->tqclipboard()->setData (mime); + kapp->clipboard()->setData (mime); } } @@ -537,7 +537,7 @@ void KSVTopLevel::editPaste() { KSVData data; - if (KSVDrag::decodeNative (kapp->tqclipboard()->data(), data)) + if (KSVDrag::decodeNative (kapp->clipboard()->data(), data)) { KSVAction* action = 0L; @@ -890,7 +890,7 @@ void KSVTopLevel::dispatchEdit () } else { - TQMimeSource* mime = kapp->tqclipboard()->data(); + TQMimeSource* mime = kapp->clipboard()->data(); if (mime && mime->provides ("application/x-ksysv")) setPaste (true); diff --git a/ksysv/kscroller.cpp b/ksysv/kscroller.cpp index f79e521..59a5a3a 100644 --- a/ksysv/kscroller.cpp +++ b/ksysv/kscroller.cpp @@ -88,7 +88,7 @@ TQSize KScroller::minimumSizeHint() const TQSize KScroller::sizeHint() const { TQSize size = mContent->minimumSize(); - int extra = kapp->tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); size += TQSize( extra, extra ); return size; } @@ -113,7 +113,7 @@ void KScroller::setupHorizontal (int cw, int, int w, int h) if (cw > w) { - int extra = kapp->tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); if (!mVertical->isHidden()) w -= extra; @@ -139,7 +139,7 @@ void KScroller::setupVertical (int, int ch, int w, int h) if (ch > h) { - int extra = kapp->tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); mVertical->setRange (0, ch - h); mVertical->setPageStep (h); mVertical->setLineStep (25); @@ -175,7 +175,7 @@ void KScroller::setupCornerWidget (int w, int h) { if (!mVertical->isHidden() && !mHorizontal->isHidden()) { - int extra = kapp->tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); mCornerWidget->raise(); mCornerWidget->setGeometry (w - extra, h - extra, extra, extra); |