summaryrefslogtreecommitdiffstats
path: root/kugar/kudesigner_lib
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-03 18:10:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-03 18:10:36 +0000
commite7e4b0b68cf15e861bb8f0f7ee76156460cdf97d (patch)
tree0d7b18b719cc71b15efcb5be91e4ca2f9926bf9e /kugar/kudesigner_lib
parent86ea45fe5947020ff39e593b7f86f3c8b518d79b (diff)
downloadkoffice-e7e4b0b68cf15e861bb8f0f7ee76156460cdf97d.tar.gz
koffice-e7e4b0b68cf15e861bb8f0f7ee76156460cdf97d.zip
Fix instances of Orientation in quotes which were accidentally renamed to Qt::Orientation during TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1244690 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/kudesigner_lib')
-rw-r--r--kugar/kudesigner_lib/canvas.cpp2
-rw-r--r--kugar/kudesigner_lib/kugartemplate.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/kugar/kudesigner_lib/canvas.cpp b/kugar/kudesigner_lib/canvas.cpp
index d56e425d..d486ae9d 100644
--- a/kugar/kudesigner_lib/canvas.cpp
+++ b/kugar/kudesigner_lib/canvas.cpp
@@ -155,7 +155,7 @@ bool Canvas::loadXML( const TQDomNode &report )
KugarTemplate *templ = new KugarTemplate( 0, 0, width(), height(), this );
templ->show();
templ->props[ "PageSize" ].setValue( attributes.namedItem( "PageSize" ).nodeValue() );
- templ->props[ "PageQt::Orientation" ].setValue( attributes.namedItem( "PageQt::Orientation" ).nodeValue() );
+ templ->props[ "PageOrientation" ].setValue( attributes.namedItem( "PageOrientation" ).nodeValue() );
templ->props[ "TopMargin" ].setValue( attributes.namedItem( "TopMargin" ).nodeValue().toInt() );
templ->props[ "BottomMargin" ].setValue( attributes.namedItem( "BottomMargin" ).nodeValue().toInt() );
templ->props[ "LeftMargin" ].setValue( attributes.namedItem( "LeftMargin" ).nodeValue().toInt() );
diff --git a/kugar/kudesigner_lib/kugartemplate.cpp b/kugar/kudesigner_lib/kugartemplate.cpp
index deffdcc6..28dc10d7 100644
--- a/kugar/kudesigner_lib/kugartemplate.cpp
+++ b/kugar/kudesigner_lib/kugartemplate.cpp
@@ -97,7 +97,7 @@ KugarTemplate::KugarTemplate( int x, int y, int width, int height, Canvas *canva
m[ i18n( "Portrait" ) ] = "0";
m[ i18n( "Landscape" ) ] = "1";
- props.addProperty( new Property( "PageQt::Orientation", m.values(), m.keys(), "0", i18n( "Page Qt::Orientation" ), i18n( "Page Qt::Orientation" ) ), "DocumentSettings" );
+ props.addProperty( new Property( "PageOrientation", m.values(), m.keys(), "0", i18n( "Page Orientation" ), i18n( "Page Orientation" ) ), "DocumentSettings" );
m.clear();
props.addProperty( new Property( "TopMargin", 0, i18n( "Top Margin" ), i18n( "Top Margin" ), KoProperty::Integer ), "DocumentSettings" );
@@ -177,7 +177,7 @@ void KugarTemplate::updatePaperProps()
printer = new TQPrinter();
printer->setFullPage( true );
printer->setPageSize( ( TQPrinter::PageSize ) props[ "PageSize" ].value().toInt() );
- printer->setOrientation( ( TQPrinter::Orientation ) props[ "PageQt::Orientation" ].value().toInt() );
+ printer->setOrientation( ( TQPrinter::Orientation ) props[ "PageOrientation" ].value().toInt() );
// Get the page metrics and set appropriate wigth and height
TQPaintDeviceMetrics pdm( printer );