diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
| commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
| tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kivio/kiviopart/ui/kiviooptionsdialog.cpp | |
| parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
| download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip | |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/kiviopart/ui/kiviooptionsdialog.cpp')
| -rw-r--r-- | kivio/kiviopart/ui/kiviooptionsdialog.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kivio/kiviopart/ui/kiviooptionsdialog.cpp b/kivio/kiviopart/ui/kiviooptionsdialog.cpp index 136b7debe..239008944 100644 --- a/kivio/kiviopart/ui/kiviooptionsdialog.cpp +++ b/kivio/kiviopart/ui/kiviooptionsdialog.cpp @@ -48,8 +48,8 @@ #include <tqlayout.h> #include <tqtabwidget.h> -// GuidesListViewItem::GuidesListViewItem(TQListView* tqparent, KivioGuideLineData *gd, KoUnit::Unit u) -// : KListViewItem(tqparent), m_data(gd) +// GuidesListViewItem::GuidesListViewItem(TQListView* parent, KivioGuideLineData *gd, KoUnit::Unit u) +// : KListViewItem(parent), m_data(gd) // { // setPixmap(0, BarIcon(m_data->orientation() == Qt::Vertical ? // "guides_vertical":"guides_horizontal")); @@ -87,12 +87,12 @@ /*****************************************************************************/ -KivioOptionsDialog::KivioOptionsDialog(KivioView* tqparent, const char* name) - : KDialogBase(IconList, i18n("Settings"), Ok|Cancel|Apply|Default, Ok, tqparent, name) +KivioOptionsDialog::KivioOptionsDialog(KivioView* parent, const char* name) + : KDialogBase(IconList, i18n("Settings"), Ok|Cancel|Apply|Default, Ok, parent, name) { initPage(); initGrid(); - unitChanged(tqparent->doc()->unit()); + unitChanged(parent->doc()->unit()); } void KivioOptionsDialog::initPage() @@ -101,7 +101,7 @@ void KivioOptionsDialog::initPage() kapp->iconLoader()->loadIcon("empty", KIcon::Toolbar, 32)); m_pageIndex = pageIndex(page); - KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(tqparent())); + KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(parent())); KoUnit::Unit unit = KoUnit::unit(Kivio::Config::unit()); m_layout = Kivio::Config::defaultPageLayout(); m_font = Kivio::Config::font(); @@ -158,8 +158,8 @@ void KivioOptionsDialog::initGrid() TQFrame* page = addPage(i18n("Grid"), i18n("Grid Settings"), BarIcon( "grid", KIcon::SizeMedium )); m_gridIndex = pageIndex(page); - KoUnit::Unit unit = static_cast<KivioView*>(TQT_TQWIDGET(tqparent()))->doc()->unit(); - KivioGridData d = static_cast<KivioView*>(TQT_TQWIDGET(tqparent()))->doc()->grid(); + KoUnit::Unit unit = static_cast<KivioView*>(TQT_TQWIDGET(parent()))->doc()->unit(); + KivioGridData d = static_cast<KivioView*>(TQT_TQWIDGET(parent()))->doc()->grid(); double pgw = m_layout.ptWidth; double pgh = m_layout.ptHeight; double fw = Kivio::Config::gridXSpacing(); @@ -210,7 +210,7 @@ void KivioOptionsDialog::initGrid() void KivioOptionsDialog::applyPage() { - KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(tqparent())); + KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(parent())); view->doc()->setUnit(static_cast<KoUnit::Unit>(m_unitCombo->currentItem())); Kivio::Config::setUnit(KoUnit::unitName(view->doc()->unit())); Kivio::Config::setDefaultPageLayout(m_layout); @@ -230,7 +230,7 @@ void KivioOptionsDialog::applyGrid() Kivio::Config::setShowGrid(m_gridChBox->isChecked()); Kivio::Config::setSnapGrid(m_snapChBox->isChecked()); Kivio::Config::setGridColor(m_gridColorBtn->color()); - KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(tqparent())); + KivioView* view = static_cast<KivioView*>(TQT_TQWIDGET(parent())); view->doc()->updateView(0); } |
