diff options
Diffstat (limited to 'krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc')
-rw-r--r-- | krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc b/krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc index 545f886f..b61f4a9d 100644 --- a/krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc +++ b/krita/plugins/viewplugins/dropshadow/dlg_dropshadow.cc @@ -19,14 +19,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qbutton.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qcolor.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qslider.h> +#include <tqbutton.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqcolor.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqslider.h> #include <kcolorbutton.h> #include <kconfig.h> @@ -37,29 +37,29 @@ #include "dlg_dropshadow.h" #include "wdg_dropshadow.h" -DlgDropshadow::DlgDropshadow( const QString & /*imageCS*/, - const QString & /*layerCS*/, - QWidget * parent, +DlgDropshadow::DlgDropshadow( const TQString & /*imageCS*/, + const TQString & /*layerCS*/, + TQWidget * tqparent, const char * name) - : super (parent, name, true, i18n("Drop Shadow"), Ok | Cancel, Ok) + : super (tqparent, name, true, i18n("Drop Shadow"), Ok | Cancel, Ok) { m_page = new WdgDropshadow(this, "dropshadow"); Q_CHECK_PTR(m_page); setMainWidget(m_page); - resize(m_page->sizeHint()); + resize(m_page->tqsizeHint()); KConfig * cfg = KGlobal::config(); m_page->xOffsetSpinBox->setValue( cfg->readNumEntry("dropshadow_x", 8) ); m_page->yOffsetSpinBox->setValue( cfg->readNumEntry("dropshadow_y", 8) ); m_page->blurRadiusSpinBox->setValue( cfg->readNumEntry("dropshadow_blurRadius", 5) ); - QColor black(0,0,0); + TQColor black(0,0,0); m_page->shadowColorButton->setColor( cfg->readColorEntry("dropshadow_color", &black) ); m_page->opacitySlider->setValue( cfg->readNumEntry("dropshadow_opacity", 80 ) ); m_page->opacitySpinBox->setValue( cfg->readNumEntry("dropshadow_opacity", 80 ) ); m_page->allowResizingCheckBox->setChecked( cfg->readBoolEntry("dropshadow_resizing", true ) ); - connect(this, SIGNAL(okClicked()), - this, SLOT(okClicked())); + connect(this, TQT_SIGNAL(okClicked()), + this, TQT_SLOT(okClicked())); } DlgDropshadow::~DlgDropshadow() @@ -67,29 +67,29 @@ DlgDropshadow::~DlgDropshadow() delete m_page; } -Q_INT32 DlgDropshadow::getXOffset() +TQ_INT32 DlgDropshadow::getXOffset() { return m_page->xOffsetSpinBox->value(); } -Q_INT32 DlgDropshadow::getYOffset() +TQ_INT32 DlgDropshadow::getYOffset() { return m_page->yOffsetSpinBox->value(); } -Q_INT32 DlgDropshadow::getBlurRadius() +TQ_INT32 DlgDropshadow::getBlurRadius() { return m_page->blurRadiusSpinBox->value(); } -Q_UINT8 DlgDropshadow::getShadowOpacity() +TQ_UINT8 DlgDropshadow::getShadowOpacity() { double opacity = (double)m_page->opacitySpinBox->value(); //convert percent to a 8 bit opacity value - return (Q_UINT8)(opacity / 100 * 255); + return (TQ_UINT8)(opacity / 100 * 255); } -QColor DlgDropshadow::getShadowColor() +TQColor DlgDropshadow::getShadowColor() { return m_page->shadowColorButton->color(); } |