summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/walletbar.cpp (renamed from src/walletwidget.cpp)18
-rw-r--r--src/walletbar.h (renamed from src/walletwidget.h)6
-rw-r--r--src/webtab.cpp4
4 files changed, 15 insertions, 15 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e3527a41..ede49328 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -22,7 +22,7 @@ SET( rekonq_KDEINIT_SRCS
clicktoflash.cpp
networkaccessmanager.cpp
webinspectordock.cpp
- walletwidget.cpp
+ walletbar.cpp
#----------------------------------------
history/autosaver.cpp
history/historymanager.cpp
diff --git a/src/walletwidget.cpp b/src/walletbar.cpp
index c7100a4d..c5d705e0 100644
--- a/src/walletwidget.cpp
+++ b/src/walletbar.cpp
@@ -25,8 +25,8 @@
// Self Includes
-#include "walletwidget.h"
-#include "walletwidget.moc"
+#include "walletbar.h"
+#include "walletbar.moc"
// KDE Includes
#include <klocalizedstring.h>
@@ -39,7 +39,7 @@
#include <QString>
-WalletWidget::WalletWidget(QWidget *parent)
+WalletBar::WalletBar(QWidget *parent)
: QWidget(parent)
, m_label( new QLabel(this) )
{
@@ -71,33 +71,33 @@ WalletWidget::WalletWidget(QWidget *parent)
}
-WalletWidget::~WalletWidget()
+WalletBar::~WalletBar()
{
}
-void WalletWidget::rememberData()
+void WalletBar::rememberData()
{
emit saveFormDataAccepted(m_key);
destroy();
}
-void WalletWidget::neverRememberData()
+void WalletBar::neverRememberData()
{
// TODO: store site url (to remember never bother about)
notNowRememberData();
}
-void WalletWidget::notNowRememberData()
+void WalletBar::notNowRememberData()
{
emit saveFormDataRejected (m_key);
destroy();
}
-void WalletWidget::destroy()
+void WalletBar::destroy()
{
if (parentWidget() && parentWidget()->layout())
{
@@ -107,7 +107,7 @@ void WalletWidget::destroy()
}
-void WalletWidget::onSaveFormData(const QString &key, const QUrl &url)
+void WalletBar::onSaveFormData(const QString &key, const QUrl &url)
{
m_label->setText( i18n("Do you want rekonq to remember the password on %1?", url.host() ) );
diff --git a/src/walletwidget.h b/src/walletbar.h
index 3e5f6465..d2e39373 100644
--- a/src/walletwidget.h
+++ b/src/walletbar.h
@@ -35,13 +35,13 @@
#include <QLabel>
-class WalletWidget : public QWidget
+class WalletBar : public QWidget
{
Q_OBJECT
public:
- WalletWidget(QWidget *parent);
- ~WalletWidget();
+ WalletBar(QWidget *parent);
+ ~WalletBar();
private slots:
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 31dd1ca6..6698f961 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -38,7 +38,7 @@
#include "mainview.h"
#include "webpage.h"
#include "bookmarksmanager.h"
-#include "walletwidget.h"
+#include "walletbar.h"
// KDE Includes
#include <KService>
@@ -159,7 +159,7 @@ void WebTab::createWalletBar(const QString &key, const QUrl &url)
KWebWallet *wallet = page()->wallet();
QWidget *messageBar = layout()->itemAt(0)->widget();
- WalletWidget *walletBar = new WalletWidget(messageBar);
+ WalletBar *walletBar = new WalletBar(messageBar);
walletBar->onSaveFormData(key,url);
messageBar->layout()->addWidget(walletBar);