Commit 42d05fed authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Finish port to QStatusBar.

parent 60a9bbf8
......@@ -73,7 +73,6 @@
#include <KStandardAction>
#include <KStandardGuiItem>
#include <KStandardShortcut>
#include <KStatusBar>
#include <KStatusNotifierItem>
#include <KToggleAction>
#include <KToolInvocation>
......@@ -97,6 +96,7 @@
#include <QPrintDialog>
#include <QPrinter>
#include <QProcess>
#include <QStatusBar>
#include <QUrl>
#include <QWidget>
#include <QWidgetAction>
......@@ -457,9 +457,8 @@ KeysManager::KeysManager(QWidget *parent)
iview->setColumnHidden(5, !KGpgSettings::showExpi());
iproxy->setOnlySecret(KGpgSettings::showSecret());
QStatusBar *statusbar = statusBar();
// statusbar->insertPermanentFixedItem(KGpgItemModel::statusCountMessageString(9999, 999), 0); FIXME: KF5
// statusbar->changeItem(QString(), 0); FIXME: KF5
m_statusBarLabel.setAlignment (Qt::AlignCenter);
statusBar()->addPermanentWidget(&m_statusBarLabel);
cg = KConfigGroup(KSharedConfig::openConfig().data(), "MainWindow");
setAutoSaveSettings(cg, true);
......@@ -553,7 +552,7 @@ void KeysManager::changeMessage(const QString &msg, const bool keep)
void KeysManager::updateStatusCounter()
{
// statusBar()->changeItem(imodel->statusCountMessage(), 0); FIXME: KF5
m_statusBarLabel.setText(imodel->statusCountMessage());
}
void KeysManager::slotGenerateKeyDone(KJob *job)
......
......@@ -257,6 +257,8 @@ private:
QLineEdit *m_listviewsearch;
KDialog *addUidWidget;
QLabel m_statusBarLabel;
QAction *importSignatureKey;
QAction *importAllSignKeys;
QAction *signKey;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment