diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/ksvnwidgets/depthselector.cpp | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/ksvnwidgets/depthselector.cpp')
-rw-r--r-- | src/ksvnwidgets/depthselector.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ksvnwidgets/depthselector.cpp b/src/ksvnwidgets/depthselector.cpp index 842adcf..a732716 100644 --- a/src/ksvnwidgets/depthselector.cpp +++ b/src/ksvnwidgets/depthselector.cpp @@ -22,14 +22,14 @@ #include <klocale.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qcombobox.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqcombobox.h> -DepthSelector::DepthSelector(QWidget *parent, const char *name) - :DepthSettings(parent, name) +DepthSelector::DepthSelector(TQWidget *tqparent, const char *name) + :DepthSettings(tqparent, name) { if (svn::Version::version_major()>1|| svn::Version::version_minor()>4 ) { m_recurse = 0L; @@ -38,29 +38,29 @@ DepthSelector::DepthSelector(QWidget *parent, const char *name) delete m_DepthCombo; m_DepthCombo=0; DepthFormLayout->removeItem(m_leftspacer); - m_recurse = new QCheckBox( this, "m_RecursiveButton" ); + m_recurse = new TQCheckBox( this, "m_RecursiveButton" ); m_recurse->setChecked( TRUE ); m_recurse->setText(i18n( "Recursive" )); DepthFormLayout->addWidget( m_recurse ); - m_recurse->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed); + m_recurse->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); DepthFormLayout->addItem(m_leftspacer); } DepthFormLayout->setMargin(0); - setMinimumSize(minimumSizeHint()); + setMinimumSize(tqminimumSizeHint()); adjustSize(); } DepthSelector::~DepthSelector() { } -void DepthSelector::addItemWidget(QWidget*aWidget) +void DepthSelector::addItemWidget(TQWidget*aWidget) { DepthFormLayout->removeItem(m_leftspacer); - aWidget->reparent(this,geometry().topLeft()); + aWidget->reparent(this,tqgeometry().topLeft()); DepthFormLayout->addWidget(aWidget); - aWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed); + aWidget->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); DepthFormLayout->addItem(m_leftspacer); - setMinimumSize(minimumSizeHint()); + setMinimumSize(tqminimumSizeHint()); } /*! @@ -90,7 +90,7 @@ svn::Depth DepthSelector::getDepth()const void DepthSelector::hideDepth(bool hide) { - QWidget*w = m_DepthCombo? (QWidget*)m_DepthCombo:(QWidget*)m_recurse; + TQWidget*w = m_DepthCombo? (TQWidget*)m_DepthCombo:(TQWidget*)m_recurse; if (hide) w->hide(); else w->show(); } |