Commit c268db10 authored by Michal Humpula's avatar Michal Humpula

port away from KPushButton to QPushButton

parent b67dd4e9
......@@ -42,7 +42,6 @@
#include <QCheckBox>
#include <QLabel>
#include <kpushbutton.h>
#include <QRadioButton>
#include <QSpinBox>
#include <QVBoxLayout>
......
......@@ -27,15 +27,14 @@
#include <KMessageBox>
#include <kprocess.h>
#include <KRun>
#include <KPushButton>
#include <KVBox>
#include <klocalizedstring.h>
#include <QHeaderView>
#include <QLabel>
#include <QPushButton>
#include <QTextStream>
#include <QtCore/QTemporaryFile>
#include <QtCore/QTextStream>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
class KateDocItem : public QTreeWidgetItem
{
......@@ -119,7 +118,7 @@ KateMwModOnHdDialog::KateMwModOnHdDialog( DocVector docs, QWidget *parent, const
KHBox *lo2 = new KHBox ( w );
QWidget *d = new QWidget (lo2);
lo2->setStretchFactor (d, 2);
btnDiff = new KPushButton( KGuiItem (i18n("&View Difference"), "document-preview"), lo2 );
btnDiff = new QPushButton(QIcon::fromTheme("document-preview"), i18n("&View Difference"), lo2);
btnDiff->setWhatsThis(i18n(
"Calculates the difference between the editor contents and the disk "
......
......@@ -35,7 +35,6 @@
#include <KMessageBox>
#include <KCodecs>
#include <KStandardGuiItem>
#include <KPushButton>
#include <KActionCollection>
#include <KIO/NetAccess>
#include <KIO/CopyJob>
......@@ -43,15 +42,16 @@
#include <klocalizedstring.h>
#include <ksharedconfig.h>
#include <QDir>
#include <QLabel>
#include <QCheckBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QStyle>
#include <QtAlgorithms>
#include <QCollator>
#include <QtCore/QCollator>
#include <QtCore/QDir>
#include <QtCore/QtAlgorithms>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMenu>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QStyle>
#include <QtWidgets/QVBoxLayout>
#include <unistd.h>
#include <time.h>
......@@ -869,11 +869,12 @@ KateSessionManageDialog::KateSessionManageDialog (QWidget *parent)
hb->addItem(vb);
vb->setSpacing (KDialog::spacingHint());
m_rename = new KPushButton (i18n("&Rename..."), page);
m_rename = new QPushButton(i18n("&Rename..."), page);
connect (m_rename, SIGNAL(clicked()), this, SLOT(rename()));
vb->addWidget (m_rename);
m_del = new KPushButton (KStandardGuiItem::del (), page);
m_del = new QPushButton (page);
KGuiItem::assign(m_del, KStandardGuiItem::del());
connect (m_del, SIGNAL(clicked()), this, SLOT(del()));
vb->addWidget (m_del);
......
......@@ -33,7 +33,7 @@
#include <QExplicitlySharedDataPointer>
class KateSessionManager;
class KPushButton;
class QPushButton;
class QCheckBox;
......@@ -439,8 +439,8 @@ class KateSessionManageDialog : public KDialog
private:
QTreeWidget *m_sessions;
KPushButton *m_rename;
KPushButton *m_del;
QPushButton *m_rename;
QPushButton *m_del;
};
class KateSessionsAction : public KActionMenu
......
......@@ -83,7 +83,6 @@
#include <kprocess.h>
#include <krun.h>
#include <kseparator.h>
#include <kpushbutton.h>
#include <kvbox.h>
#include <kactioncollection.h>
#include <kplugininfo.h>
......
......@@ -238,7 +238,7 @@
</widget>
</item>
<item row="3" column="3">
<widget class="KPushButton" name="findAll">
<widget class="QPushButton" name="findAll">
<property name="text">
<string>&amp;Find All</string>
</property>
......@@ -284,11 +284,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KPushButton</class>
<extends>QPushButton</extends>
<header>kpushbutton.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
......
......@@ -22,19 +22,16 @@
*/
#include "editrepository.h"
#include "snippetrepository.h"
#include "snippetstore.h"
#include <ktexteditor/editor.h>
#include <ktexteditor/document.h>
#include <KLocalizedString>
#include <KPushButton>
#include <klocalizedstring.h>
#include <kuser.h>
#include <KUser>
#include "snippetstore.h"
#include <QtWidgets/QPushButton>
EditRepository::EditRepository(SnippetRepository* repository, QWidget* parent)
: KDialog(parent), Ui::EditRepositoryBase(), m_repo(repository)
......
......@@ -26,11 +26,10 @@
#include "ui_editsnippet.h"
#include "snippetrepository.h"
#include <QToolButton>
#include "snippetstore.h"
#include "snippet.h"
#include <KLocalizedString>
#include <KPushButton>
#include <KMimeTypeTrader>
#include <KTextEditor/Document>
#include <KTextEditor/View>
......@@ -38,8 +37,8 @@
#include <KMessageBox>
#include <KMessageWidget>
#include "snippetstore.h"
#include "snippet.h"
#include <QtWidgets/QToolButton>
#include <QtWidgets/QPushButton>
QPair<KTextEditor::View*, QToolButton*> getViewForTab(QWidget* tabWidget)
{
......
Markdown is supported
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