Commit 084ddce9 authored by Christoph Cullmann's avatar Christoph Cullmann

start to port part, mark all commented out places with FIXME and KF5

parent c2295b3e
......@@ -31,6 +31,7 @@ find_package(Qt5Core REQUIRED NO_MODULE)
find_package(Qt5DBus REQUIRED NO_MODULE)
find_package(Qt5Quick REQUIRED NO_MODULE)
find_package(Qt5Widgets REQUIRED NO_MODULE)
find_package(Qt5Script REQUIRED NO_MODULE)
# Load the frameworks we need
find_package(KF5 CONFIG REQUIRED
......@@ -77,7 +78,7 @@ include_directories (BEFORE ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/includes)
ecm_optional_add_subdirectory (ktexteditor)
# kate part
#macro_optional_add_subdirectory (part)
ecm_optional_add_subdirectory (part)
# kate application
#macro_optional_add_subdirectory (kate)
......
......@@ -226,13 +226,13 @@ add_definitions ( -DKDE_DEFAULT_DEBUG_AREA=13000 )
kde4_add_ui_files(katepart_PART_SRCS ${katepart_PART_UI} )
kde4_add_library (katepartinterfaces ${LIBRARY_TYPE} ${katepart_PART_SRCS} )
add_library (katepartinterfaces SHARED ${katepart_PART_SRCS} )
target_link_libraries (
katepartinterfaces ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS}
${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${QT_QTSCRIPT_LIBRARY} ${KDE_4_4_LIBS_NEEDED} ${KDE4_KNEWSTUFF3_LIBS}
target_link_libraries (katepartinterfaces
KF5::KParts
KF5::KDE4Support
KF5::KNewStuff Qt5::Script
)
target_link_libraries(katepartinterfaces LINK_INTERFACE_LIBRARIES "${KDE4_KPARTS_LIBS}" )
set_target_properties(
katepartinterfaces PROPERTIES
......@@ -240,13 +240,6 @@ set_target_properties(
SOVERSION ${GENERIC_LIB_SOVERSION}
)
# kde 4 final support
if(KDE4_ENABLE_FINAL)
macro_add_file_dependencies(${CMAKE_CURRENT_BINARY_DIR}/katepartinterfaces_final_cpp.cpp )
else(KDE4_ENABLE_FINAL)
macro_add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/script/katescript.cpp )
endif(KDE4_ENABLE_FINAL)
# install kate part interfaces
install (TARGETS katepartinterfaces EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -254,9 +247,10 @@ install (TARGETS katepartinterfaces EXPORT kdelibsLibraryTargets ${INSTALL_TARGE
kde4_add_plugin (katepart utils/katefactory.cpp)
# link the part, use kate part interfaces + kde stuff
target_link_libraries (katepart
${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS}
${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${QT_QTSCRIPT_LIBRARY} katepartinterfaces)
target_link_libraries (katepart katepartinterfaces
KF5::KParts
KF5::KDE4Support
KF5::KNewStuff)
# install the part
install (TARGETS katepart DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -21,7 +21,6 @@
#ifndef ExpandingDelegate_H
#define ExpandingDelegate_H
#include <QtGui/QItemDelegate>
#include <QItemDelegate>
#include <QtGui/QTextLine>
#include <QModelIndex>
......
......@@ -20,7 +20,7 @@
#include "katecompletionconfig.h"
#include <QtGui/QTreeWidget>
#include <QtWidgets/QTreeWidget>
#include <kicon.h>
#include <kglobal.h>
......
......@@ -26,7 +26,7 @@
#include <QTimer>
#include <QVarLengthArray>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kiconloader.h>
#include <kapplication.h>
......@@ -433,7 +433,7 @@ QModelIndex KateCompletionModel::index( int row, int column, const QModelIndex &
}
//kDebug( 13035 ) << "Returning index for group " << m_rowTable[row];
return createIndex(row, column, 0);
return createIndex(row, column, quintptr (0));
}
/*QModelIndex KateCompletionModel::sibling( int row, int column, const QModelIndex & index ) const
......@@ -501,7 +501,7 @@ QModelIndex KateCompletionModel::indexForGroup( Group * g ) const
if (row == -1)
return QModelIndex();
return createIndex(row, 0, 0);
return createIndex(row, 0, quintptr(0));
}
void KateCompletionModel::clearGroups( bool shouldReset )
......@@ -838,7 +838,7 @@ QModelIndex KateCompletionModel::parent( const QModelIndex & index ) const
return QModelIndex();
}
return createIndex(row, 0, 0);
return createIndex(row, 0, quintptr (0));
}
return QModelIndex();
......
......@@ -22,7 +22,7 @@
#ifndef KATECOMPLETIONMODEL_H
#define KATECOMPLETIONMODEL_H
#include <QtGui/QAbstractProxyModel>
#include <QtCore/QAbstractProxyModel>
#include <QtCore/QPair>
#include <QtCore/QList>
......@@ -262,10 +262,10 @@ class KATEPART_TESTS_EXPORT KateCompletionModel : public ExpandingWidgetModel
int inheritanceDepth;
// True when currently matching completion string
MatchType matchCompletion : 6;
MatchType matchCompletion;
// True when passes all active filters
bool matchFilters : 1;
bool m_haveExactMatch : 1;
bool matchFilters;
bool m_haveExactMatch;
QString completionSortingName() const;
};
......
......@@ -21,8 +21,8 @@
#include "katecompletiontree.h"
#include <QtGui/QHeaderView>
#include <QtGui/QScrollBar>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QScrollBar>
#include <QVector>
#include <QTimer>
#include <QApplication>
......
......@@ -21,17 +21,17 @@
#include "katecompletionwidget.h"
#include <QtGui/QBoxLayout>
#include <QtGui/QApplication>
#include <QtGui/QDesktopWidget>
#include <QtGui/QHeaderView>
#include <QtWidgets/QBoxLayout>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDesktopWidget>
#include <QtWidgets/QHeaderView>
#include <QtCore/QTimer>
#include <QtGui/QLabel>
#include <QtGui/QToolButton>
#include <QtGui/QSizeGrip>
#include <QtGui/QPushButton>
#include <QtGui/QAbstractScrollArea>
#include <QtGui/QScrollBar>
#include <QtWidgets/QLabel>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QSizeGrip>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QAbstractScrollArea>
#include <QtWidgets/QScrollBar>
#include <QtCore/QScopedPointer>
#include <kicon.h>
......
......@@ -22,7 +22,7 @@
#ifndef KATECOMPLETIONWIDGET_H
#define KATECOMPLETIONWIDGET_H
#include <QtGui/QFrame>
#include <QtWidgets/QFrame>
#include <QObject>
#include "katepartprivate_export.h"
......
......@@ -30,6 +30,7 @@
#include <ktexteditor/movingrange.h>
#include <ktexteditor/range.h>
#include <klocalizedstring.h>
#include <kconfig.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......@@ -49,12 +50,12 @@
#include <QtCore/QRegExp>
#include <QtCore/QString>
#include <QtCore/QSet>
#include <QtGui/QSpinBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLayout>
#include <kvbox.h>
#include <QtGui/QCheckBox>
#include <QtWidgets/QCheckBox>
#include <kdebug.h>
//END
......@@ -112,7 +113,7 @@ QVariant KateWordCompletionModel::data(const QModelIndex& index, int role) const
QModelIndex KateWordCompletionModel::parent(const QModelIndex& index) const
{
if(index.internalId())
return createIndex(0, 0, 0);
return createIndex(0, 0, quintptr (0));
else
return QModelIndex();
}
......@@ -121,7 +122,7 @@ QModelIndex KateWordCompletionModel::index(int row, int column, const QModelInde
{
if( !parent.isValid()) {
if(row == 0)
return createIndex(row, column, 0);
return createIndex(row, column, quintptr (0));
else
return QModelIndex();
......
......@@ -63,6 +63,7 @@
#include <kio/jobclasses.h>
#include <kio/netaccess.h>
#include <kdeversion.h>
#include <kapplication.h>
#include <kcharsets.h>
#include <kcolorbutton.h>
......@@ -94,24 +95,24 @@
#include <ktabwidget.h>
//#include <knewstuff/knewstuff.h>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QDialog>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtCore/QFile>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLayout>
#include <QtCore/QMap>
#include <QtCore/QObject>
#include <QtGui/QPainter>
#include <QtGui/QRadioButton>
#include <QtGui/QSlider>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSlider>
#include <QtCore/QStringList>
#include <QtGui/QTabWidget>
#include <QtWidgets/QTabWidget>
#include <QtCore/QTextCodec>
#include <QtCore/QTextStream>
#include <QtGui/QToolButton>
#include <QtGui/QWhatsThis>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QWhatsThis>
#include <QtGui/QKeyEvent>
#include <QtXml/QDomDocument>
......@@ -506,7 +507,7 @@ KateSpellCheckConfigTab::KateSpellCheckConfigTab(QWidget *parent)
//
// after initial reload, connect the stuff for the changed () signal
m_sonnetConfigWidget = new Sonnet::ConfigWidget(KGlobal::config().data(), this);
m_sonnetConfigWidget = new Sonnet::ConfigWidget(this);
connect(m_sonnetConfigWidget, SIGNAL(configChanged()), this, SLOT(slotChanged()));
layout->addWidget(m_sonnetConfigWidget);
......@@ -1208,7 +1209,7 @@ KateHlDownloadDialog::KateHlDownloadDialog(QWidget *parent, const char *name, bo
setButtonIcon(User1, KIcon("dialog-ok"));
transferJob = KIO::get(
KUrl(QString(HLDOWNLOADPATH)
QUrl(QString(HLDOWNLOADPATH)
+ QString("update-")
+ KateGlobal::katePartVersion()
+ QString(".xml")), KIO::Reload );
......@@ -1321,8 +1322,8 @@ void KateHlDownloadDialog::slotUser1()
QString destdir=KGlobal::dirs()->saveLocation("data","katepart/syntax/");
foreach (QTreeWidgetItem *it, list->selectedItems())
{
KUrl src(it->text(4));
QString filename=src.fileName(KUrl::ObeyTrailingSlash);
QUrl src(it->text(4));
QString filename=src.fileName(); // FIXME KF5 QUrl::ObeyTrailingSlash
QString dest = destdir+filename;
KIO::NetAccess::download(src,dest, this);
......@@ -1594,7 +1595,7 @@ void KateModOnHdPrompt::slotPDone()
}
m_diffFile->setAutoRemove(false);
KUrl url = KUrl::fromPath(m_diffFile->fileName());
QUrl url = QUrl::fromLocalFile(m_diffFile->fileName());
delete m_diffFile;
m_diffFile = 0;
......
......@@ -44,8 +44,8 @@
#include <QtCore/QStringList>
#include <QtGui/QColor>
#include <QtGui/QTabWidget>
#include <QtGui/QTreeWidget>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTreeWidget>
struct syntaxContextData;
......
......@@ -32,6 +32,7 @@
#include "kateglobal.h"
#include "kateautoindent.h"
#include <klocalizedstring.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kcharsets.h>
......@@ -194,7 +195,7 @@ bool KateBuffer::openFile (const QString &m_file, bool enforceTextCodec)
// remember error
m_doc->setOpeningError(true);
m_doc->setOpeningErrorMessage(i18n ("The file %1 does not exist.", m_doc->url().pathOrUrl()));
m_doc->setOpeningErrorMessage(i18n ("The file %1 does not exist.", m_doc->url().toString()));
return true;
}
......
This diff is collapsed.
......@@ -22,12 +22,14 @@
#ifndef _KATE_DOCUMENT_H_
#define _KATE_DOCUMENT_H_
#include <QtCore/QPointer>
#include <QtCore/QLinkedList>
#include <QtCore/QMap>
#include <QtCore/QDate>
#include <QtGui/QClipboard>
#include <QtCore/QStack>
#include <kjob.h>
#include <kmimetype.h>
#include <ktexteditor/document.h>
......@@ -111,7 +113,7 @@ class KATEPART_TESTS_EXPORT KateDocument : public KTextEditor::Document,
using ReadWritePart::closeUrl;
virtual bool closeUrl();
virtual bool openUrl( const KUrl &url );
virtual bool openUrl( const QUrl &url );
virtual KTextEditor::Editor *editor ();
......@@ -857,7 +859,7 @@ Q_SIGNALS:
virtual bool save();
public:
virtual bool saveAs( const KUrl &url );
virtual bool saveAs( const QUrl &url );
Q_SIGNALS:
/**
......@@ -1000,7 +1002,7 @@ Q_SIGNALS:
void makeAttribs (bool needInvalidate = true);
static bool checkOverwrite( KUrl u, QWidget *parent );
static bool checkOverwrite( QUrl u, QWidget *parent );
/**
* Configuration
......
......@@ -42,14 +42,14 @@
#include <kmenu.h>
#include <QtCore/QRegExp>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtGui/QPushButton>
#include <QtGui/QToolButton>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QToolButton>
#include <kvbox.h>
#define KATE_FT_HOWMANY 1024
......
......@@ -41,14 +41,14 @@
#include <kmenu.h>
#include <QtCore/QRegExp>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtGui/QPushButton>
#include <QtGui/QToolButton>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QToolButton>
#include <kvbox.h>
#define KATE_FT_HOWMANY 1024
......@@ -211,8 +211,8 @@ QString KateModeManager::fileType (KateDocument *doc, const QString &fileToReadF
if (m_types.isEmpty())
return "";
QString fileName = doc->url().prettyUrl();
int length = doc->url().prettyUrl().length();
QString fileName = doc->url().toString();
int length = doc->url().toString().length();
QString result;
......
......@@ -25,6 +25,7 @@
#include <QtCore/QPointer>
#include <QtCore/QHash>
#include <klocalizedstring.h>
#include <klocale.h>
#include "katedialogs.h"
......@@ -49,13 +50,13 @@ class KateFileType
QString nameTranslated () const
{
// use "Language" as for highlightings, to avoid double work!
return hlGenerated ? i18nc("Language", name.toUtf8()) : name;
return hlGenerated ? i18nc("Language", name.toUtf8().data()) : name;
}
QString sectionTranslated () const
{
// use "Language Section" as for highlightings, to avoid double work!
return hlGenerated ? i18nc("Language Section", section.toUtf8()) : section;
return hlGenerated ? i18nc("Language Section", section.toUtf8().data()) : section;
}
KateFileType()
......
......@@ -41,14 +41,14 @@
#include <kmenu.h>
#include <QtCore/QRegExp>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtGui/QPushButton>
#include <QtGui/QToolButton>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QToolButton>
#include <kvbox.h>
#define KATE_FT_HOWMANY 1024
......
......@@ -20,9 +20,9 @@
#include "katecategorydrawer.h"
#include <QtGui/QStyledItemDelegate>
#include <QtGui/QPainter>
#include <QtGui/QHeaderView>
#include <QtWidgets/QStyledItemDelegate>
#include <QtWidgets/QPainter>
#include <QtWidgets/QHeaderView>
#include <klocale.h>
#include <kconfiggroup.h>
......
......@@ -19,7 +19,7 @@
#ifndef KATE_COLOR_TREE_WIDGET_H
#define KATE_COLOR_TREE_WIDGET_H
#include <QtGui/QTreeWidget>
#include <QtWidgets/QTreeWidget>
class KConfigGroup;
class KateColorTreeItem;
......
......@@ -23,6 +23,7 @@
#include <kactionmenu.h>
#include <kconfig.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <QtCore/QStringList>
#include <QtCore/QPointer>
......@@ -40,7 +41,7 @@ class KateSchema
* construct translated name for shipped schemas
*/
QString translatedName () const {
return shippedDefaultSchema ? i18nc("Color Schema", rawName.toUtf8()) : rawName;
return shippedDefaultSchema ? i18nc("Color Schema", rawName.toUtf8().data()) : rawName;
}
};
......
......@@ -41,8 +41,8 @@
#include <khbox.h>
#include <ktabwidget.h>
#include <QtGui/QPushButton>
#include <QtGui/QProgressDialog>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QProgressDialog>
//END
......
......@@ -26,7 +26,7 @@
#include "kateextendedattribute.h"
#include <QtCore/QMap>
#include <QtGui/QFont>
#include <QtWidgets/QFont>
#include <kconfig.h>
......
......@@ -21,11 +21,11 @@
#include "katestyletreewidget.h"
#include <QtGui/QPainter>
#include <QtGui/QKeyEvent>
#include <QtGui/QAction>
#include <QtGui/QStyledItemDelegate>
#include <QtGui/QHeaderView>
#include <QtWidgets/QPainter>
#include <QtWidgets/QKeyEvent>
#include <QtWidgets/QAction>
#include <QtWidgets/QStyledItemDelegate>
#include <QtWidgets/QHeaderView>
#include <klocale.h>
#include <kicon.h>
......
......@@ -22,7 +22,7 @@
#ifndef KATESTYLETREEWIDGET_H
#define KATESTYLETREEWIDGET_H
#include <QtGui/QTreeWidget>
#include <QtWidgets/QTreeWidget>
#include "kateextendedattribute.h"
......
......@@ -23,6 +23,7 @@
#include <QScriptValue>
#include <QScriptEngine>
#include <klocalizedstring.h>
#include <klocale.h>
#include "katedocument.h"
......
......@@ -36,6 +36,7 @@
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <klocalizedstring.h>
......@@ -93,7 +94,7 @@ KateScript::~KateScript()
// unload i18n catalog if available + loaded
if (!generalHeader().catalog().isEmpty()) {
kDebug() << "unloading i18n catalog" << generalHeader().catalog();
KGlobal::locale()->removeCatalog(generalHeader().catalog());
//KGlobal::locale()->removeCatalog(generalHeader().catalog()); FIXME KF5
}
// remove data...
......
......@@ -21,14 +21,17 @@
//BEGIN Includes
// Qt
#include <QtCore/QFile>
#include <QtGui/QLabel>
#include <QtGui/QVBoxLayout>
#include <QtGui/QPushButton>
#include <QtGui/QTextEdit>
#include <QtWidgets/QLabel>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTextEdit>
// KDE
#include <KStandardDirs>
#include <KLocale>
#include <KGlobal>
#include <KIcon>
#include <klocalizedstring.h>
// Kate
#include "katescriptconsole.h"
......
......@@ -312,7 +312,7 @@ QString KateScriptDocument::fileName()
QString KateScriptDocument::url()
{
return m_document->url().prettyUrl();
return m_document->url().toString();
}
QString KateScriptDocument::mimeType()
......
......@@ -32,6 +32,7 @@
#include <kdebug.h>
#include <klocale.h>
#include <kglobal.h>
#include <klocalizedstring.h>
#include <kstandarddirs.h>
......@@ -202,7 +203,7 @@ QScriptValue i18n( QScriptContext *context, QScriptEngine *engine )
args << context->argument(i).toVariant();
}
KLocalizedString ls = ki18n(text.toUtf8());
KLocalizedString ls = ki18n(text.toUtf8().data());
return substituteArguments( ls, args ).toString();
}
......@@ -231,7 +232,7 @@ QScriptValue i18nc( QScriptContext *context, QScriptEngine *engine )
args << context->argument(i).toVariant();
}
KLocalizedString ls = ki18nc(textContext.toUtf8(), text.toUtf8());
KLocalizedString ls = ki18nc(textContext.toUtf8().data(), text.toUtf8().data());
return substituteArguments( ls, args ).toString();
}
......@@ -265,7 +266,7 @@ QScriptValue i18np( QScriptContext *context, QScriptEngine *engine )
args << context->argument(i).toVariant();
}
KLocalizedString ls = ki18np(trSingular.toUtf8(), trPlural.toUtf8()).subs(number);
KLocalizedString ls = ki18np(trSingular.toUtf8().data(), trPlural.toUtf8().data()).subs(number);
return substituteArguments( ls, args, 98 ).toString();
}
......@@ -304,7 +305,7 @@ QScriptValue i18ncp( QScriptContext *context, QScriptEngine *engine )
args << context->argument(i).toVariant();
}
KLocalizedString ls = ki18ncp(trContext.toUtf8(), trSingular.toUtf8(), trPlural.toUtf8()).subs( number );
KLocalizedString ls = ki18ncp(trContext.toUtf8().data(), trSingular.toUtf8().data(), trPlural.toUtf8().data()).subs( number );
return substituteArguments( ls, args, 98 ).toString();
}
//END code adapted from kdelibs/kross/modules/translation.cpp
......
......@@ -31,6 +31,8 @@
#include <QMap>
#include <QUuid>
#include <klocalizedstring.h>
#include <kglobal.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <kstandarddirs.h>
......
......@@ -33,7 +33,7 @@ class KateRegExp
bool isEmpty() const { return m_regExp.isEmpty(); }
bool isValid() const { return m_regExp.isValid(); }
QString pattern() const { return m_regExp.pattern(); }
int numCaptures() const { return m_regExp.numCaptures(); }
int numCaptures() const { return m_regExp.captureCount(); }
int pos(int nth = 0) const { return m_regExp.pos(nth); }
QString cap(int nth = 0) const { return m_regExp.cap(nth); }
int matchedLength() const { return m_regExp.matchedLength(); }
......
......@@ -40,11 +40,12 @@
#include <kcolorscheme.h>
#include <kmessagebox.h>
#include <kstandardaction.h>
#include <kicon.h>
#include <QtGui/QVBoxLayout>
#include <QtGui/QComboBox>
#include <QtGui/QCheckBox>
#include <QtGui/QShortcut>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QComboBox>