From 60da1801389e3c729d440a353003acca39a7c3b6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:30:12 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/kchmsearchwindow.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/kchmsearchwindow.cpp') diff --git a/src/kchmsearchwindow.cpp b/src/kchmsearchwindow.cpp index 7e5af5b..be0122c 100644 --- a/src/kchmsearchwindow.cpp +++ b/src/kchmsearchwindow.cpp @@ -34,33 +34,33 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags f ) : TQWidget (parent, name, f) { - TQVBoxLayout * tqlayout = new TQVBoxLayout (this); - tqlayout->setMargin(6); - tqlayout->setSpacing(6); + TQVBoxLayout * layout = new TQVBoxLayout (this); + layout->setMargin(6); + layout->setSpacing(6); // Labels and - TQHBoxLayout * labeltqlayout = new TQHBoxLayout(); - labeltqlayout->addWidget( new TQLabel( i18n( "Type in word(s) to search for:"), this) ); - labeltqlayout->addStretch( 10 ); + TQHBoxLayout * labellayout = new TQHBoxLayout(); + labellayout->addWidget( new TQLabel( i18n( "Type in word(s) to search for:"), this) ); + labellayout->addStretch( 10 ); KCHMClickableLabel * helplink = new KCHMClickableLabel( i18n( "Help"), this ); connect( helplink, TQT_SIGNAL( clicked() ), this, TQT_SLOT( onHelpClicked() ) ); helplink->setCursor( TQCursor( TQt::PointingHandCursor ) ); - labeltqlayout->addWidget ( helplink ); - tqlayout->addLayout( labeltqlayout ); + labellayout->addWidget ( helplink ); + layout->addLayout( labellayout ); m_searchQuery = new TQComboBox (TRUE, this); m_searchQuery->setFocus(); m_searchQuery->setMaxCount (10); - m_searchQuery->tqsetSizePolicy ( TQSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + m_searchQuery->setSizePolicy ( TQSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); TQPushButton * searchButton = new TQPushButton ( i18n("Go"), this); - searchButton->tqsetSizePolicy ( TQSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); + searchButton->setSizePolicy ( TQSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); - TQHBoxLayout * htqlayout = new TQHBoxLayout ( tqlayout ); - htqlayout->addWidget ( m_searchQuery ); - htqlayout->addWidget ( searchButton ); + TQHBoxLayout * hlayout = new TQHBoxLayout ( layout ); + hlayout->addWidget ( m_searchQuery ); + hlayout->addWidget ( searchButton ); m_searchList = new KQListView (this); m_searchList->addColumn( i18n( "Title" ) ); @@ -87,15 +87,15 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags this, TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); - //tqlayout->addSpacing (10); - tqlayout->addWidget (m_searchList); + //layout->addSpacing (10); + layout->addWidget (m_searchList); new KCHMListItemTooltip( m_searchList ); m_contextMenu = 0; m_searchEngine = 0; } -void KCHMSearchWindow::tqinvalidate( ) +void KCHMSearchWindow::invalidate( ) { m_searchList->clear(); m_searchQuery->clear(); -- cgit v1.2.3