diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kword/KWordViewIface.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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 'kword/KWordViewIface.cpp')
-rw-r--r-- | kword/KWordViewIface.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kword/KWordViewIface.cpp b/kword/KWordViewIface.cpp index 9c4f1b80..246b92e6 100644 --- a/kword/KWordViewIface.cpp +++ b/kword/KWordViewIface.cpp @@ -104,7 +104,7 @@ void KWordViewIface::insertPicture() view->insertPicture(); } -static KoPicture picture( const QString& fileName ) +static KoPicture picture( const TQString& fileName ) { KoPicture picture; KoPictureKey key; @@ -114,12 +114,12 @@ static KoPicture picture( const QString& fileName ) return picture; } -void KWordViewIface::insertPictureFromFile( QString fileName, double x, double y, int w, int h ) +void KWordViewIface::insertPictureFromFile( TQString fileName, double x, double y, int w, int h ) { - view->getGUI()->canvasWidget()->insertPictureDirect( picture( fileName ), KoPoint( x, y ), QSize(w, h) ); + view->getGUI()->canvasWidget()->insertPictureDirect( picture( fileName ), KoPoint( x, y ), TQSize(w, h) ); } -void KWordViewIface::insertInlinePicture( QString fileName, int w, int h ) +void KWordViewIface::insertInlinePicture( TQString fileName, int w, int h ) { view->insertPicture( picture( fileName ), true /*makeInline*/, true /*keepRatio*/, w, h ); view->getGUI()->canvasWidget()->insertInlinePicture(); @@ -205,7 +205,7 @@ void KWordViewIface::createStyleFromSelection() view->createStyleFromSelection(); } -int KWordViewIface::tableSelectCell(const QString &name, uint row, uint col) +int KWordViewIface::tableSelectCell(const TQString &name, uint row, uint col) { return view->tableSelectCell(name, row, col); } @@ -242,7 +242,7 @@ void KWordViewIface::tableDeleteRow() int KWordViewIface::tableDeleteRow(uint row) { - QValueList<uint> list; + TQValueList<uint> list; list.append(row); return view->tableDeleteRow(list); } @@ -254,7 +254,7 @@ void KWordViewIface::tableDeleteCol() int KWordViewIface::tableDeleteCol(uint col) { - QValueList<uint> list; + TQValueList<uint> list; list.append(col); return view->tableDeleteCol(list); } @@ -299,12 +299,12 @@ bool KWordViewIface::configTableIsFloating() const return view->getGUI()->canvasWidget()->tableIsFloating(); } -QString KWordViewIface::configTableTemplateName() const +TQString KWordViewIface::configTableTemplateName() const { return view->getGUI()->canvasWidget()->tableTemplateName(); } -void KWordViewIface::setConfigTableTemplateName(const QString &_name) +void KWordViewIface::setConfigTableTemplateName(const TQString &_name) { view->getGUI()->canvasWidget()->setTableTemplateName( _name ); } @@ -361,7 +361,7 @@ void KWordViewIface::importStyle() } // ### TODO: network transparency -void KWordViewIface::insertFile(const QString & path) +void KWordViewIface::insertFile(const TQString & path) { KURL url; @@ -394,7 +394,7 @@ bool KWordViewIface::pictureKeepRatio() const return view->getGUI()->canvasWidget()->pictureKeepRatio(); } -void KWordViewIface::changeAutoSpellCheckStatus(bool b) +void KWordViewIface::changeAutoSpellChecktqStatus(bool b) { view->autoSpellCheck(b); } |