summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-21 14:03:30 -0600
committerTimothy Pearson <[email protected]>2011-12-21 14:03:30 -0600
commitbdde494bd053ceca36163e9a03d74ec0734ad6ee (patch)
treefa85b1d565e6fa5ab9a4753d6af5afa9481e3c6d /src
parentc9113d74fbb7e1e6b063915a0f6ac4a8a080b631 (diff)
downloadabakus-bdde494bd053ceca36163e9a03d74ec0734ad6ee.tar.gz
abakus-bdde494bd053ceca36163e9a03d74ec0734ad6ee.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'src')
-rw-r--r--src/editor.cpp4
-rw-r--r--src/evaluator.cpp2
-rw-r--r--src/mainwindow.cpp16
-rw-r--r--src/mainwindow.h2
-rw-r--r--src/resultlistview.cpp2
5 files changed, 13 insertions, 13 deletions
diff --git a/src/editor.cpp b/src/editor.cpp
index b9c8d00..b926e10 100644
--- a/src/editor.cpp
+++ b/src/editor.cpp
@@ -147,7 +147,7 @@ void ChoiceItem::paint( TQPainter* painter )
//int xPos = fm.width( item );
int xPos = TQMAX(fm.width(item), minNameWidth);
if( !isSelected() )
- painter->setPen( listBox()->tqpalette().disabled().text().dark() );
+ painter->setPen( listBox()->palette().disabled().text().dark() );
painter->drawText( 10 + xPos, yPos, desc );
}
@@ -268,7 +268,7 @@ TQSize Editor::sizeHint() const
int h = TQMAX(fm.lineSpacing(), 14);
int w = fm.width( 'x' ) * 20;
int m = frameWidth() * 2;
- return( tqstyle().tqsizeFromContents(TQStyle::CT_LineEdit, this,
+ return( style().tqsizeFromContents(TQStyle::CT_LineEdit, this,
TQSize( w + m, h + m + 4 ).
expandedTo(TQApplication::globalStrut())));
}
diff --git a/src/evaluator.cpp b/src/evaluator.cpp
index 0bea1f3..92e64d4 100644
--- a/src/evaluator.cpp
+++ b/src/evaluator.cpp
@@ -140,7 +140,7 @@ static Token::Op matchOperator( const TQString& text )
if( text.length() == 1 )
{
TQChar p = text[0];
- switch( p.tqunicode() )
+ switch( p.unicode() )
{
case '+': result = Token::Plus; break;
case '-': result = Token::Minus; break;
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b05980f..64ca2ff 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -54,13 +54,13 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
{
m_mainSplitter = new TQSplitter(this);
TQWidget *box = new TQWidget(m_mainSplitter);
- TQVBoxLayout *tqlayout = new TQVBoxLayout(box);
- m_layout = tqlayout;
- tqlayout->setSpacing(6);
- tqlayout->setMargin(6);
+ TQVBoxLayout *layout = new TQVBoxLayout(box);
+ m_layout = layout;
+ layout->setSpacing(6);
+ layout->setMargin(6);
TQWidget *configBox = new TQWidget(box);
- tqlayout->addWidget(configBox);
+ layout->addWidget(configBox);
TQHBoxLayout *configLayout = new TQHBoxLayout(configBox);
@@ -90,7 +90,7 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
connect(m_radians, TQT_SIGNAL(clicked()), TQT_SLOT(slotRadians()));
m_history = new TQVBox(box);
- tqlayout->addWidget(m_history);
+ layout->addWidget(m_history);
m_history->setSpacing(6);
m_history->setMargin(0);
@@ -103,10 +103,10 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
TQT_SLOT(slotResultSelected(const TQString &)));
m_history->setStretchFactor(m_result, 1);
- tqlayout->setStretchFactor(m_history, 1);
+ layout->setStretchFactor(m_history, 1);
TQHBox *editBox = new TQHBox(box);
- tqlayout->addWidget(editBox);
+ layout->addWidget(editBox);
editBox->setSpacing(6);
m_edit = new Editor(editBox);
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 5ff9c95..1e0d977 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -42,7 +42,7 @@ class ResultListViewText;
class AbakusIface;
-// Main window class, handles events and tqlayout and stuff
+// Main window class, handles events and layout and stuff
class MainWindow : public KMainWindow
{
Q_OBJECT
diff --git a/src/resultlistview.cpp b/src/resultlistview.cpp
index 7ad48c7..abf2c67 100644
--- a/src/resultlistview.cpp
+++ b/src/resultlistview.cpp
@@ -129,7 +129,7 @@ void ResultListView::slotCopyResult()
if(!m_itemRightClicked)
return;
- TQClipboard *clipboard = TQApplication::tqclipboard();
+ TQClipboard *clipboard = TQApplication::clipboard();
clipboard->setText(m_itemRightClicked->resultText(), TQClipboard::Clipboard);
}