diff options
Diffstat (limited to 'bibletime/frontend/cprofile.cpp')
-rw-r--r-- | bibletime/frontend/cprofile.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/bibletime/frontend/cprofile.cpp b/bibletime/frontend/cprofile.cpp index bacdda9..5d6eb9e 100644 --- a/bibletime/frontend/cprofile.cpp +++ b/bibletime/frontend/cprofile.cpp @@ -30,7 +30,7 @@ CProfile::CProfile( const TQString& file, const TQString& name ): m_name(name.isEmpty() ? i18n("unknown") : name), m_filename(file), m_fullscreen(false), -m_tqgeometry(10,20,640,480) { +m_geometry(10,20,640,480) { m_profileWindows.setAutoDelete(true); if (!m_filename.isEmpty() && name.isEmpty()) { @@ -216,14 +216,14 @@ const bool CProfile::save(TQPtrList<CProfileWindow> windows) { TQDomElement mainWindow = doc.createElement("MAINWINDOW"); mainWindow.setAttribute("fullscreen", fullscreen()); - TQDomElement tqgeometry = doc.createElement("GEOMETRY"); - mainWindow.appendChild(tqgeometry); - const TQRect r = this->tqgeometry(); - tqgeometry.setAttribute("x",r.x()); - tqgeometry.setAttribute("y",r.y()); - tqgeometry.setAttribute("width",r.width()); - tqgeometry.setAttribute("height",r.height()); - tqgeometry.setAttribute("isMaximized",static_cast<int>(this->maximized())); + TQDomElement geometry = doc.createElement("GEOMETRY"); + mainWindow.appendChild(geometry); + const TQRect r = this->geometry(); + geometry.setAttribute("x",r.x()); + geometry.setAttribute("y",r.y()); + geometry.setAttribute("width",r.width()); + geometry.setAttribute("height",r.height()); + geometry.setAttribute("isMaximized",static_cast<int>(this->maximized())); content.appendChild(mainWindow); } @@ -253,14 +253,14 @@ const bool CProfile::save(TQPtrList<CProfileWindow> windows) { window.setAttribute("hasFocus", p->hasFocus()); //save geomtery - const TQRect r = p->tqgeometry(); - TQDomElement tqgeometry = doc.createElement("GEOMETRY"); - tqgeometry.setAttribute("x",r.x()); - tqgeometry.setAttribute("y",r.y()); - tqgeometry.setAttribute("width",r.width()); - tqgeometry.setAttribute("height",r.height()); - tqgeometry.setAttribute("isMaximized",static_cast<int>(p->maximized())); - window.appendChild( tqgeometry ); + const TQRect r = p->geometry(); + TQDomElement geometry = doc.createElement("GEOMETRY"); + geometry.setAttribute("x",r.x()); + geometry.setAttribute("y",r.y()); + geometry.setAttribute("width",r.width()); + geometry.setAttribute("height",r.height()); + geometry.setAttribute("isMaximized",static_cast<int>(p->maximized())); + window.appendChild( geometry ); TQDomElement modules = doc.createElement("MODULES"); modules.setAttribute("separator", "|"); @@ -384,14 +384,14 @@ void CProfile::setMaximized( const bool maximized ) { m_maximized = maximized; } -/** Returns the tqgeometry of the main window */ -const TQRect CProfile::tqgeometry() { - return m_tqgeometry; +/** Returns the geometry of the main window */ +const TQRect CProfile::geometry() { + return m_geometry; } /** Stes the geoemtry of the main window */ void CProfile::setGeometry( const TQRect rect ) { - m_tqgeometry = rect; + m_geometry = rect; } } //end of namespace Profile |