From b45817ccac7985d286c754b95f40eda5e105efda Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:55:43 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 59d9dbf810de71334e1173fa7dda59209c10032c. --- src/infosidebarpage.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/infosidebarpage.cpp') diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index cb8db07..2766e1f 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -20,7 +20,7 @@ #include "infosidebarpage.h" #include -#include +#include #include #include #include @@ -63,8 +63,8 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) : connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout())); - TQVBoxLayout* layout = new TQVBoxLayout(this); - layout->setSpacing(spacing); + TQVBoxLayout* tqlayout = new TQVBoxLayout(this); + tqlayout->setSpacing(spacing); // preview m_preview = new PixmapViewer(this); @@ -74,37 +74,37 @@ InfoSidebarPage::InfoSidebarPage(TQWidget* parent) : // name m_name = new TQLabel(this); m_name->setTextFormat(TQt::RichText); - m_name->setAlignment(m_name->alignment() | TQt::AlignHCenter); + m_name->tqsetAlignment(m_name->tqalignment() | TQt::AlignHCenter); TQFontMetrics fontMetrics(m_name->font()); m_name->setMinimumHeight(fontMetrics.height() * 3); - m_name->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Maximum); + m_name->tqsetSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Maximum); TQWidget* sep1 = new TQHGroupBox(this); // TODO: check whether default widget exist for this? sep1->setFixedHeight(1); // general information m_infoGrid = new TQGrid(2, this); - m_infoGrid->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + m_infoGrid->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); TQWidget* sep2 = new TQHGroupBox(this); // TODO: check whether default widget exist for this? sep2->setFixedHeight(1); // actions m_actionBox = new TQVBox(this); - m_actionBox->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + m_actionBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); // Add a dummy widget with no restriction regarding a vertical resizing. // This assures that information is always top aligned. TQWidget* dummy = new TQWidget(this); - layout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed)); - layout->addWidget(m_preview); - layout->addWidget(m_name); - layout->addWidget(sep1); - layout->addWidget(m_infoGrid); - layout->addWidget(sep2); - layout->addWidget(m_actionBox); - layout->addWidget(dummy); + tqlayout->addItem(new TQSpacerItem(spacing, spacing, TQSizePolicy::Preferred, TQSizePolicy::Fixed)); + tqlayout->addWidget(m_preview); + tqlayout->addWidget(m_name); + tqlayout->addWidget(sep1); + tqlayout->addWidget(m_infoGrid); + tqlayout->addWidget(sep2); + tqlayout->addWidget(m_actionBox); + tqlayout->addWidget(dummy); connect(&Dolphin::mainWin(), TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(showItemInfo())); @@ -388,14 +388,14 @@ void InfoSidebarPage::addInfoLine(const TQString& labelText, const TQString& inf // no labels are available anymore, hence create 2 new ones TQLabel* label = new TQLabel(labelStr, m_infoGrid); label->setTextFormat(TQt::RichText); - label->setAlignment(TQt::AlignRight | + label->tqsetAlignment(TQt::AlignRight | TQt::AlignTop); label->show(); m_infoWidgets.append(label); TQLabel* info = new TQLabel(infoText, m_infoGrid); info->setTextFormat(TQt::RichText); - info->setAlignment(TQt::AlignTop | TQt::WordBreak); + info->tqsetAlignment(TQt::AlignTop | TQt::WordBreak); info->show(); m_infoWidgets.append(info); @@ -406,7 +406,7 @@ void InfoSidebarPage::addInfoLine(const TQString& labelText, const TQString& inf void InfoSidebarPage::insertActions() { // delete all existing action widgets - // TODO: just use children() from TQObject... + // TODO: just use tqchildren() from TQObject... TQPtrListIterator deleteIter(m_actionWidgets); TQWidget* widget = 0; while ((widget = deleteIter.current()) != 0) { @@ -535,7 +535,7 @@ ServiceButton::ServiceButton(const TQIconSet& icon, m_hover(false), m_index(index) { - setEraseColor(colorGroup().background()); + setEraseColor(tqcolorGroup().background()); setFocusPolicy(TQ_NoFocus); connect(this, TQT_SIGNAL(released()), this, TQT_SLOT(slotReleased())); @@ -557,7 +557,7 @@ void ServiceButton::drawButton(TQPainter* painter) foregroundColor = KGlobalSettings::highlightedTextColor(); } else { - backgroundColor = colorGroup().background(); + backgroundColor = tqcolorGroup().background(); foregroundColor = KGlobalSettings::buttonTextColor(); } -- cgit v1.2.1