diff options
Diffstat (limited to 'src/sidebars.cpp')
-rw-r--r-- | src/sidebars.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/sidebars.cpp b/src/sidebars.cpp index 11f1ca1..02f74a0 100644 --- a/src/sidebars.cpp +++ b/src/sidebars.cpp @@ -20,7 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <tqlayout.h> +#include <layout.h> #include <tqpixmap.h> #include <kiconloader.h> #include <klocale.h> @@ -42,16 +42,16 @@ leftSidebar::leftSidebar(TQWidget* parent) : TQWidget(parent), m_pagesSelector(0), m_page(0), - m_tqlayout(0) + m_layout(0) { - m_tqlayout = new TQVBoxLayout(this); + m_layout = new TQVBoxLayout(this); m_pagesSelector = new TQComboBox(this); m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Information")); // Assure that the combo box has the same height as the URL navigator for - // a clean tqlayout. + // a clean layout. // TODO: the following 2 lines have been copied from the URLNavigator // constructor (-> provide a shared height setting?) //TQFontMetrics fontMetrics(font()); @@ -61,7 +61,7 @@ leftSidebar::leftSidebar(TQWidget* parent) : leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); const int selectedIndex = indexForName(settings->selectedPage()); m_pagesSelector->setCurrentItem(selectedIndex); - m_tqlayout->addWidget(m_pagesSelector); + m_layout->addWidget(m_pagesSelector); createPage(selectedIndex); @@ -73,9 +73,9 @@ leftSidebar::~leftSidebar() { } -TQSize leftSidebar::tqsizeHint() const +TQSize leftSidebar::sizeHint() const { - TQSize size(TQWidget::tqsizeHint()); + TQSize size(TQWidget::sizeHint()); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); size.setWidth(settings->width()); @@ -95,7 +95,7 @@ void leftSidebar::createPage(int index) default: break; } - m_tqlayout->addWidget(m_page); + m_layout->addWidget(m_page); m_page->show(); leftSidebarSettings* settings = DolphinSettings::instance().leftsidebar(); @@ -118,16 +118,16 @@ rightSidebar::rightSidebar(TQWidget* parent) : TQWidget(parent), m_pagesSelector(0), m_page(0), - m_tqlayout(0) + m_layout(0) { - m_tqlayout = new TQVBoxLayout(this); + m_layout = new TQVBoxLayout(this); m_pagesSelector = new TQComboBox(this); m_pagesSelector->insertItem(i18n("Bookmarks")); m_pagesSelector->insertItem(i18n("Information")); // Assure that the combo box has the same height as the URL navigator for - // a clean tqlayout. + // a clean layout. // TODO: the following 2 lines have been copied from the URLNavigator // constructor (-> provide a shared height setting?) TQFontMetrics fontMetrics(font()); @@ -136,7 +136,7 @@ rightSidebar::rightSidebar(TQWidget* parent) : rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); const int selectedIndex = indexForName(settings->selectedPage()); m_pagesSelector->setCurrentItem(selectedIndex); - m_tqlayout->addWidget(m_pagesSelector); + m_layout->addWidget(m_pagesSelector); createPage(selectedIndex); @@ -148,9 +148,9 @@ rightSidebar::~rightSidebar() { } -TQSize rightSidebar::tqsizeHint() const +TQSize rightSidebar::sizeHint() const { - TQSize size(TQWidget::tqsizeHint()); + TQSize size(TQWidget::sizeHint()); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); size.setWidth(settings->width()); @@ -170,7 +170,7 @@ void rightSidebar::createPage(int index) default: break; } - m_tqlayout->addWidget(m_page); + m_layout->addWidget(m_page); m_page->show(); rightSidebarSettings* settings = DolphinSettings::instance().rightsidebar(); |