Skip to content

Commit

Permalink
Renamed action setDefaultType to setDefault
Browse files Browse the repository at this point in the history
- Type was misleading as it is not unique any more
  • Loading branch information
Joachim Wilke committed Jul 18, 2011
1 parent 00d05d0 commit 83181cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions KFritzWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ void KFritzWindow::setupActions() {
actionCollection()->addAction("copyNumber", aCopyNumber);
connect(aCopyNumber, SIGNAL(triggered(bool)), this, SLOT(copyNumberToClipboard()));

KAction *aSetDefaultType = new KAction(this);
aSetDefaultType->setText(i18n("Set as default"));
aSetDefaultType->setIcon(KIcon("favorites"));
actionCollection()->addAction("setDefaultType", aSetDefaultType);
connect(aSetDefaultType, SIGNAL(triggered(bool)), this, SLOT(setDefault()));
KAction *aSetDefault = new KAction(this);
aSetDefault->setText(i18n("Set as default"));
aSetDefault->setIcon(KIcon("favorites"));
actionCollection()->addAction("setDefault", aSetDefault);
connect(aSetDefault, SIGNAL(triggered(bool)), this, SLOT(setDefault()));

KSelectAction *aSetType = new KSelectAction(this);
aSetType->setText(i18n("Set type"));
Expand Down Expand Up @@ -467,7 +467,7 @@ void KFritzWindow::updateMainWidgets(bool b)
treeFonbook->addAction(actionCollection()->action("separator2"));
treeFonbook->addAction(actionCollection()->action("dialNumber"));
treeFonbook->addAction(actionCollection()->action("copyNumber"));
treeFonbook->addAction(actionCollection()->action("setDefaultType")); //TODO: misleading name 'type'
treeFonbook->addAction(actionCollection()->action("setDefault"));
treeFonbook->addAction(actionCollection()->action("setType"));
treeFonbook->setContextMenuPolicy(Qt::ActionsContextMenu);
connect(treeFonbook->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(updateFonbookContextMenu(const QModelIndex&, const QModelIndex&)));
Expand Down

0 comments on commit 83181cd

Please sign in to comment.