Remove unneeded kapplication.h includes

parent a8886742
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -21,10 +21,10 @@
#include <QCheckBox>
#include <QSlider>
#include <QApplication>
#include <kio/netaccess.h>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -30,7 +30,8 @@
#include <ImfStringAttribute.h>
#include "exr_extra_tags.h"
#include <kapplication.h>
#include <QApplication>
#include <kmessagebox.h>
#include <kio/netaccess.h>
......
......@@ -21,8 +21,8 @@
#include <QCheckBox>
#include <QSlider>
#include <QApplication>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......@@ -84,7 +84,7 @@ KoFilter::ConversionStatus exrExport::convert(const QByteArray& from, const QByt
widget.flatten->setChecked(cfg.getBool("flatten", false));
if (!m_chain->manager()->getBatchMode() ) {
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
if (dialog.exec() == QDialog::Rejected) {
return KoFilter::UserCancelled;
}
......
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -20,9 +20,9 @@
#include <qendian.h>
#include <QDataStream>
#include <QApplication>
#include <kpluginfactory.h>
#include <kapplication.h>
#include <KoColorSpace.h>
#include <KoColorSpaceConstants.h>
......@@ -94,7 +94,7 @@ KoFilter::ConversionStatus KisHeightMapExport::convert(const QByteArray& from, c
optionsHeightMap.setupUi(wdg);
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
QString filterConfig = KisConfig().exportConfiguration("HeightMap");
KisPropertiesConfiguration cfg;
......
......@@ -26,7 +26,6 @@
#include <qendian.h>
#include <QCursor>
#include <kapplication.h>
#include <kpluginfactory.h>
#include <KoFilterManager.h>
......@@ -103,7 +102,7 @@ KoFilter::ConversionStatus KisHeightMapImport::convert(const QByteArray& from, c
return KoFilter::FileNotFound;
}
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
KDialog* kdb = new KDialog(0);
kdb->setWindowTitle(i18n("R16 HeightMap Import Options"));
......
......@@ -21,8 +21,8 @@
#include <openjpeg.h>
#include <QFileInfo>
#include <QApplication>
#include <kapplication.h>
#include <kmessagebox.h>
#include <kio/netaccess.h>
......
......@@ -20,8 +20,8 @@
#include <QCheckBox>
#include <QSlider>
#include <QApplication>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......@@ -88,7 +88,7 @@ KoFilter::ConversionStatus jp2Export::convert(const QByteArray& from, const QByt
optionsJP2.qualityLevel->setValue(cfg.getInt("quality", 100));
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
if (!m_chain->manager()->getBatchMode()) {
if (kdb->exec() == QDialog::Rejected) {
......
......@@ -36,8 +36,8 @@ extern "C" {
#include <QFile>
#include <QBuffer>
#include <QApplication>
#include <kapplication.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <kde_file.h>
......
......@@ -24,8 +24,8 @@
#include <QColor>
#include <QString>
#include <QStringList>
#include <QApplication>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
#include <kcolorbutton.h>
......@@ -115,7 +115,7 @@ KoFilter::ConversionStatus KisJPEGExport::convert(const QByteArray& from, const
frm.setEnabledFilters(cfg.getString("filters").split(','));
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
if (!m_chain->manager()->getBatchMode()) {
if (kdb->exec() == QDialog::Rejected) {
......
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -24,7 +24,6 @@
#include <kio/netaccess.h>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -17,7 +17,7 @@
#include "ora_converter.h"
#include <kapplication.h>
#include <QApplication>
#include <kio/netaccess.h>
......
......@@ -20,7 +20,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
#include <kmessagebox.h>
......
......@@ -27,9 +27,9 @@
#include <QFile>
#include <QImage>
#include <QRadioButton>
#include <QApplication>
// KDE's headers
#include <kapplication.h>
#include <kis_debug.h>
#include <kis_paint_device.h>
#include <kdialog.h>
......@@ -120,7 +120,7 @@ KisPDFImport::ConversionStatus KisPDFImport::convert(const QByteArray& , const Q
KisPDFImportWidget* wdg = new KisPDFImportWidget(pdoc, kdb);
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
if (kdb->exec() == QDialog::Rejected) {
delete pdoc;
delete kdb;
......
......@@ -21,8 +21,8 @@
#include <QCheckBox>
#include <QSlider>
#include <QApplication>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
#include <kmessagebox.h>
......@@ -170,7 +170,7 @@ KoFilter::ConversionStatus KisPNGExport::convert(const QByteArray& from, const Q
wdg->bnTransparencyFillColor->setColor(QColor(rgb[0].toInt(), rgb[1].toInt(), rgb[2].toInt()));
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
if (hasVisibleWidgets()) {
if (!m_chain->manager()->getBatchMode()) {
if (kdb->exec() == QDialog::Rejected) {
......
......@@ -19,7 +19,6 @@
#include "kis_ppm_export.h"
#include <kpluginfactory.h>
#include <kapplication.h>
#include <KoColorSpace.h>
#include <KoColorSpaceConstants.h>
......@@ -42,6 +41,9 @@
#include <KoColorModelStandardIds.h>
#include "kis_iterator_ng.h"
#include <QApplication>
K_PLUGIN_FACTORY(KisPPMExportFactory, registerPlugin<KisPPMExport>();)
K_EXPORT_PLUGIN(KisPPMExportFactory("krita"))
......@@ -160,7 +162,7 @@ KoFilter::ConversionStatus KisPPMExport::convert(const QByteArray& from, const Q
optionsPPM.setupUi(wdg);
kdb->setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
QString filterConfig = KisConfig().exportConfiguration("PPM");
KisPropertiesConfiguration cfg;
......
......@@ -20,7 +20,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
#include <kmessagebox.h>
......
......@@ -17,7 +17,7 @@
*/
#include "psd_loader.h"
#include <kapplication.h>
#include <QApplication>
#include <kio/netaccess.h>
......
......@@ -17,8 +17,6 @@
*/
#include "psd_saver.h"
#include <kapplication.h>
#include <KoColorSpace.h>
#include <KoColorModelStandardIds.h>
#include <KoColorProfile.h>
......
......@@ -20,7 +20,6 @@
#include <QFileInfo>
#include <QDir>
#include <kapplication.h>
#include <kurl.h>
#include <kis_image.h>
......
......@@ -20,7 +20,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -22,10 +22,10 @@
#include <QCheckBox>
#include <QBuffer>
#include <QSlider>
#include <QApplication>
#include <kio/netaccess.h>
#include <kapplication.h>
#include <kdialog.h>
#include <kpluginfactory.h>
......
......@@ -23,8 +23,8 @@
#include <QGroupBox>
#include <QSlider>
#include <QStackedWidget>
#include <QApplication>
#include <kapplication.h>
#include <kcombobox.h>
#include <klocale.h>
......@@ -45,7 +45,7 @@ KisDlgOptionsTIFF::KisDlgOptionsTIFF(QWidget *parent)
connect(optionswdg->kComboBoxCompressionType, SIGNAL(activated(int)), this, SLOT(activated(int)));
connect(optionswdg->flatten, SIGNAL(toggled(bool)), this, SLOT(flattenToggled(bool)));
setMainWidget(wdg);
kapp->restoreOverrideCursor();
qApp->restoreOverrideCursor();
setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
QString filterConfig = KisConfig().exportConfiguration("TIFF");
......
......@@ -22,8 +22,8 @@
#include <stdio.h>
#include <QFile>
#include <QApplication>
#include <kapplication.h>
#include <KoDocumentInfo.h>
#include <kio/netaccess.h>
......
......@@ -22,7 +22,6 @@
#include <QCheckBox>
#include <QSlider>
#include <kapplication.h>
#include <kpluginfactory.h>
#include <KoFilterChain.h>
......
......@@ -27,7 +27,6 @@
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kmimetype.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kio/job.h>
......
......@@ -52,7 +52,6 @@
#include <KoIcon.h>
#include <KoConfig.h>
#include <kapplication.h>
#include <kcolorbutton.h>
#include <kcombobox.h>
#include <klineedit.h>
......
......@@ -23,7 +23,6 @@
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kmimetype.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kio/job.h>
......
......@@ -40,7 +40,6 @@
#include <KoShapeBasedDocumentBase.h>
#include <KoResourceServerProvider.h>
#include <kapplication.h>
#include <kmessagebox.h>
#include <QApplication>
......
......@@ -34,8 +34,8 @@
#include <QBuffer>
#include <QFile>
#include <QApplication>
#include <kapplication.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <kio/netaccess.h>
......
......@@ -121,7 +121,6 @@
#include "widgets/kis_floating_message.h"
#include <QPoint>
#include <kapplication.h>
#include "kis_node_commands_adapter.h"
#include <kis_paintop_preset.h>
#include "kis_favorite_resource_manager.h"
......
......@@ -31,7 +31,6 @@
#include <QTimer>
#include <QRegExp>
#include <kapplication.h>
#include <kwindowsystem.h>
#include <KoIcon.h>
......
......@@ -21,7 +21,6 @@
#include <QFile>
#include <QDir>
#include <kcmdlineargs.h>
#include <kapplication.h>
#include <KoStore.h>
#include <KoEncryptionChecker.h>
......
......@@ -36,7 +36,6 @@
// KDE
#include <kdebug.h>
#include <kapplication.h>
#include <kmessagebox.h>
#include <kmimetype.h>
#include <kurl.h>
......
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