diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/fileview/partwidget.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/fileview/partwidget.cpp')
-rw-r--r-- | parts/fileview/partwidget.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/parts/fileview/partwidget.cpp b/parts/fileview/partwidget.cpp index b3f9baf0..db921fb1 100644 --- a/parts/fileview/partwidget.cpp +++ b/parts/fileview/partwidget.cpp @@ -10,11 +10,11 @@ ***************************************************************************/ #include "partwidget.h" -#include <qwhatsthis.h> -#include <qvbox.h> -#include <qlayout.h> -#include <qtoolbutton.h> -#include <qdom.h> +#include <tqwhatsthis.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqtoolbutton.h> +#include <tqdom.h> #include <kxmlguiclient.h> #include <kcombobox.h> #include <kaction.h> @@ -34,8 +34,8 @@ // class PartWidget /////////////////////////////////////////////////////////////////////////////// -PartWidget::PartWidget( FileViewPart *part, QWidget *parent ) - : QVBox( parent, "fileviewpartwidget" ), m_filetree( 0 ), +PartWidget::PartWidget( FileViewPart *part, TQWidget *parent ) + : TQVBox( parent, "fileviewpartwidget" ), m_filetree( 0 ), m_filter( 0 ), m_btnFilter( 0 ), m_part( part ) { Q_ASSERT( part && parent ); @@ -48,29 +48,29 @@ PartWidget::PartWidget( FileViewPart *part, QWidget *parent ) setCaption(i18n("File Tree")); m_filetree->setCaption(i18n("File Tree")); m_filetree->setIcon(SmallIcon("folder")); - QWhatsThis::add(m_filetree, i18n("<b>File tree</b><p>" + TQWhatsThis::add(m_filetree, i18n("<b>File tree</b><p>" "The file viewer shows all files of the project " "in a tree layout.")); - QHBox* filterBox = new QHBox( this ); - m_btnFilter = new QToolButton( filterBox ); + TQHBox* filterBox = new TQHBox( this ); + m_btnFilter = new TQToolButton( filterBox ); m_btnFilter->setIconSet( SmallIconSet("filter" ) ); m_btnFilter->setToggleButton( true ); m_filter = new KHistoryCombo( true, filterBox, "filter"); - m_filter->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed )); + m_filter->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); filterBox->setStretchFactor(m_filter, 2); - connect( m_btnFilter, SIGNAL( clicked() ), this, SLOT( slotBtnFilterClick() ) ); - connect( m_filter, SIGNAL( activated(const QString&) ), this, SLOT( slotFilterChange(const QString&) ) ); - connect( m_filter, SIGNAL( returnPressed(const QString&) ), - m_filter, SLOT( addToHistory(const QString&) ) ); + connect( m_btnFilter, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotBtnFilterClick() ) ); + connect( m_filter, TQT_SIGNAL( activated(const TQString&) ), this, TQT_SLOT( slotFilterChange(const TQString&) ) ); + connect( m_filter, TQT_SIGNAL( returnPressed(const TQString&) ), + m_filter, TQT_SLOT( addToHistory(const TQString&) ) ); - QWhatsThis::add + TQWhatsThis::add ( m_filter, i18n("<p>Here you can enter a name filter to limit which files are <b>not displayed</b>." "<p>To clear the filter, toggle off the filter button to the left." "<p>To reapply the last filter used, toggle on the filter button." ) ); - QWhatsThis::add + TQWhatsThis::add ( m_btnFilter, i18n("<p>This button clears the name filter when toggled off, or " "reapplies the last filter used when toggled on.") ); @@ -94,19 +94,19 @@ void PartWidget::showProjectFiles() /////////////////////////////////////////////////////////////////////////////// -void PartWidget::slotFilterChange( const QString & nf ) +void PartWidget::slotFilterChange( const TQString & nf ) { - QString f = nf.stripWhiteSpace(); + TQString f = nf.stripWhiteSpace(); bool empty = f.isEmpty() || f == "*"; if ( empty ) { - m_filter->lineEdit()->setText( QString::null ); - QToolTip::add( m_btnFilter, i18n("Apply last filter (\"%1\")").arg( m_lastFilter ) ); + m_filter->lineEdit()->setText( TQString::null ); + TQToolTip::add( m_btnFilter, i18n("Apply last filter (\"%1\")").arg( m_lastFilter ) ); } else { m_lastFilter = f; - QToolTip::add( m_btnFilter, i18n("Clear filter") ); + TQToolTip::add( m_btnFilter, i18n("Clear filter") ); } m_btnFilter->setOn( !empty ); // this will be never true after the m_filter has been used;) @@ -127,7 +127,7 @@ void PartWidget::slotBtnFilterClick() { if ( !m_btnFilter->isOn() ) { - slotFilterChange( QString::null ); + slotFilterChange( TQString::null ); } else { @@ -136,7 +136,7 @@ void PartWidget::slotBtnFilterClick() } } -void PartWidget::focusInEvent( QFocusEvent * ) +void PartWidget::focusInEvent( TQFocusEvent * ) { m_filetree->setFocus(); } |