diff options
Diffstat (limited to 'src/kchmsearchwindow.cpp')
-rw-r--r-- | src/kchmsearchwindow.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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 <type words to search> and <help> - 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( "<a href=\"q\"><b>Help</b></a>"), 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(); |