summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_angle.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/dialogs/kspread_dlg_angle.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/dialogs/kspread_dlg_angle.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_angle.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/kspread/dialogs/kspread_dlg_angle.cc b/kspread/dialogs/kspread_dlg_angle.cc
index 8dc31e1c..dc633c55 100644
--- a/kspread/dialogs/kspread_dlg_angle.cc
+++ b/kspread/dialogs/kspread_dlg_angle.cc
@@ -21,8 +21,8 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kdebug.h>
@@ -38,29 +38,29 @@
using namespace KSpread;
-AngleDialog::AngleDialog(View* parent, const char* name, const QPoint &_marker)
- : KDialogBase( parent, name,TRUE,i18n("Change Angle" ), Ok|Cancel|Default )
+AngleDialog::AngleDialog(View* tqparent, const char* name, const TQPoint &_marker)
+ : KDialogBase( tqparent, name,TRUE,i18n("Change Angle" ), Ok|Cancel|Default )
{
- m_pView=parent;
+ m_pView=tqparent;
marker=_marker;
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
- QVBoxLayout *lay = new QVBoxLayout( page, 0, spacingHint() );
+ TQVBoxLayout *lay = new TQVBoxLayout( page, 0, spacingHint() );
m_pAngle = new KIntNumInput( page );
m_pAngle->setRange( -90, 90, 1 );
m_pAngle->setLabel( i18n("Angle:") );
m_pAngle->setSuffix(" ");
lay->addWidget( m_pAngle );
- QWidget* spacer = new QWidget( page );
- spacer->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Expanding ) );
+ TQWidget* spacer = new TQWidget( page );
+ spacer->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Expanding ) );
lay->addWidget( spacer );
m_pAngle->setFocus();
- connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) );
+ connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) );
Cell *cell = m_pView->activeSheet()->cellAt( marker.x(), marker.y() );
int angle=-(cell->format()->getAngle(marker.x(), marker.y()));