Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/fb2text.cpp')
-rw-r--r--source/fb2text.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fb2text.cpp b/source/fb2text.cpp
index 0ea146f..aa2d276 100644
--- a/source/fb2text.cpp
+++ b/source/fb2text.cpp
@@ -37,14 +37,14 @@ FbTextAction::FbTextAction(const QIcon &icon, const QString &text, QWebPage::Web
{
}
-QAction * FbTextAction::action(QWebPage::WebAction action)
+QAction * FbTextAction::action()
{
return m_parent->pageAction(m_action);
}
void FbTextAction::updateAction()
{
- if (QAction * act = action(m_action)) {
+ if (QAction * act = action()) {
if (isCheckable()) setChecked(act->isChecked());
setEnabled(act->isEnabled());
}
@@ -52,7 +52,7 @@ void FbTextAction::updateAction()
void FbTextAction::connectAction()
{
- if (QAction * act = action(m_action)) {
+ if (QAction * act = action()) {
connect(this, SIGNAL(triggered(bool)), act, SIGNAL(triggered(bool)));
connect(act, SIGNAL(changed()), this, SLOT(updateAction()));
if (isCheckable()) setChecked(act->isChecked());
@@ -65,7 +65,7 @@ void FbTextAction::connectAction()
void FbTextAction::disconnectAction()
{
- QAction * act = action(m_action);
+ QAction * act = action();
disconnect(act, 0, this, 0);
disconnect(this, 0, act, 0);
}