From ff734eeec199e807badaf7f826163c21dfb12aa4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:09:24 -0600 Subject: [PATCH] Rename old tq methods that no longer need a unique name (cherry picked from commit 566fa57d9805898fc20e950541c5793f03676eed) --- src/bookmark.h | 2 +- src/bookmarksdlg.cpp | 2 +- src/bookreader.cpp | 2 +- src/bookwidget.cpp | 2 +- src/bookwidget.h | 2 +- src/settingsdlg.ui | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bookmark.h b/src/bookmark.h index 77c2ef3..7662528 100644 --- a/src/bookmark.h +++ b/src/bookmark.h @@ -33,7 +33,7 @@ class Bookmark { public: Bookmark(int page, const TQString& name = TQString(), - TQDateTime dateTime = TQDateTime::tqcurrentDateTime()); + TQDateTime dateTime = TQDateTime::currentDateTime()); ~Bookmark(); void setPage(unsigned int page) { m_page = page; } diff --git a/src/bookmarksdlg.cpp b/src/bookmarksdlg.cpp index 5a9907d..a02b562 100644 --- a/src/bookmarksdlg.cpp +++ b/src/bookmarksdlg.cpp @@ -85,7 +85,7 @@ BookmarksDlg::BookmarksDlg(const Bookmarks& bms, TQWidget* parent, Layout1->addWidget( buttonCancel ); BookmarksDlgLayout->addLayout( Layout1 ); languageChange(); - resize( TQSize(400, 267).expandedTo(tqminimumSizeHint()) ); + resize( TQSize(400, 267).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); updateBookmarks(); diff --git a/src/bookreader.cpp b/src/bookreader.cpp index 9687e56..54d4e7d 100644 --- a/src/bookreader.cpp +++ b/src/bookreader.cpp @@ -304,7 +304,7 @@ void BookReader::optionsPreferences() TQString curEncoding(encodings[Settings::defaultEncoding()]); if (curEncoding.isEmpty()) - curEncoding = TQString::tqfromLatin1(KGlobal::locale()->encoding()); + curEncoding = TQString::fromLatin1(KGlobal::locale()->encoding()); general->kcfg_DefaultEncoding->clear(); general->kcfg_DefaultEncoding->insertStringList(encodings); diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp index 6cbdf10..1d7954d 100644 --- a/src/bookwidget.cpp +++ b/src/bookwidget.cpp @@ -296,7 +296,7 @@ void BookWidget::resizeEvent(TQResizeEvent * e) TQWidget::resizeEvent(e); } -TQSize BookWidget::tqminimumSizeHint() const +TQSize BookWidget::minimumSizeHint() const { return TQSize(400, 300); } diff --git a/src/bookwidget.h b/src/bookwidget.h index 8e60fd7..381cb47 100644 --- a/src/bookwidget.h +++ b/src/bookwidget.h @@ -59,7 +59,7 @@ public: void prevPage(); void firstPage(); void lastPage(); - TQSize tqminimumSizeHint () const; + TQSize minimumSizeHint () const; void setupPageSize(); void setEncoding(int); void setEncoding(const TQString & a_encoding); diff --git a/src/settingsdlg.ui b/src/settingsdlg.ui index 4f8797d..bb1de15 100644 --- a/src/settingsdlg.ui +++ b/src/settingsdlg.ui @@ -138,7 +138,7 @@ Expanding - + 20 30