diff options
Diffstat (limited to 'krita/ui/kis_dlg_layer_properties.cc')
-rw-r--r-- | krita/ui/kis_dlg_layer_properties.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/krita/ui/kis_dlg_layer_properties.cc b/krita/ui/kis_dlg_layer_properties.cc index 442d2da1..68df970b 100644 --- a/krita/ui/kis_dlg_layer_properties.cc +++ b/krita/ui/kis_dlg_layer_properties.cc @@ -16,11 +16,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include <limits.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qgroupbox.h> -#include <qslider.h> -#include <qstring.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqgroupbox.h> +#include <tqslider.h> +#include <tqstring.h> #include <klineedit.h> #include <klocale.h> #include <kpushbutton.h> @@ -35,15 +35,15 @@ #include "kis_int_spinbox.h" #include "kis_colorspace.h" -KisDlgLayerProperties::KisDlgLayerProperties(const QString& deviceName, - Q_INT32 opacity, +KisDlgLayerProperties::KisDlgLayerProperties(const TQString& deviceName, + TQ_INT32 opacity, const KisCompositeOp& compositeOp, const KisColorSpace * colorSpace, - QWidget *parent, const char *name, WFlags f) - : super(parent, name, f, name, Ok | Cancel) + TQWidget *tqparent, const char *name, WFlags f) + : super(tqparent, name, f, name, Ok | Cancel) { m_page = new WdgLayerProperties(this); - m_page->layout()->setMargin(0); + m_page->tqlayout()->setMargin(0); opacity = int((opacity * 100.0) / 255 + 0.5); @@ -51,12 +51,12 @@ KisDlgLayerProperties::KisDlgLayerProperties(const QString& deviceName, setMainWidget(m_page); m_page->editName->setText(deviceName); - connect( m_page->editName, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotNameChanged( const QString & ) ) ); + connect( m_page->editName, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotNameChanged( const TQString & ) ) ); m_page->cmbColorSpaces->setCurrent(colorSpace->id()); m_page->cmbColorSpaces->setEnabled(false); - QString profilename; + TQString profilename; if (KisProfile* profile = const_cast<KisColorSpace *>(colorSpace)->getProfile()) profilename = profile->productName(); m_page->cmbProfile->insertItem(profilename); @@ -75,19 +75,19 @@ KisDlgLayerProperties::~KisDlgLayerProperties() { } -void KisDlgLayerProperties::slotNameChanged( const QString &_text ) +void KisDlgLayerProperties::slotNameChanged( const TQString &_text ) { enableButtonOK( !_text.isEmpty() ); } -QString KisDlgLayerProperties::getName() const +TQString KisDlgLayerProperties::getName() const { return m_page->editName->text(); } int KisDlgLayerProperties::getOpacity() const { - Q_INT32 opacity = m_page->intOpacity->value(); + TQ_INT32 opacity = m_page->intOpacity->value(); if (!opacity) return 0; |