Commit 1a2e27ed authored by Michal Humpula's avatar Michal Humpula

small header cleanup and micro fix

parent e22facf3
......@@ -29,6 +29,7 @@
#include <KRun>
#include <KVBox>
#include <klocalizedstring.h>
#include <kiconloader.h>
#include <QtCore/QTemporaryFile>
#include <QtCore/QTextStream>
......
......@@ -34,12 +34,11 @@
#include <KMessageBox>
#include <klocalizedstring.h>
#include <QMenu>
#include <QContextMenuEvent>
#include <kicon.h>
#include <qapplication.h>
#include <QClipboard>
#include <QMimeDatabase>
#include <QtCore/QMimeDatabase>
#include <QtGui/QClipboard>
#include <QtGui/QContextMenuEvent>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMenu>
//END Includes
......
......@@ -31,14 +31,13 @@
#include <kaboutdata.h>
#include <kpluginfactory.h>
#include <KActionCollection>
#include <kactioncollection.h>
#include <klocalizedstring.h>
#include <kconfiggroup.h>
#include <kiconloader.h>
#include <KConfigGroup>
#include <QAction>
#include <QApplication>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include "katefiletreedebug.h"
......
......@@ -25,7 +25,6 @@
#include <QtWidgets/QWidget>
#include <QtGui/QPixmap>
#include <kicontheme.h>
#include <kxmlguiclient.h>
#include <KComponentData>
......
......@@ -721,6 +721,7 @@ bool TextBuffer::save (const QString &filename)
* use QSaveFile for save write + rename
*/
QSaveFile saveFile(filename);
saveFile.setDirectWriteFallback(true);
if (!saveFile.open(QIODevice::WriteOnly))
return false;
......
......@@ -19,15 +19,12 @@
*/
#include "katecompletionconfig.h"
#include "katecompletionmodel.h"
#include "ui_completionconfigwidget.h"
#include <QtWidgets/QTreeWidget>
#include <kicon.h>
#include <ksharedconfig.h>
#include "katecompletionmodel.h"
#include "ui_completionconfigwidget.h"
#include <QtWidgets/QTreeWidget>
using namespace KTextEditor;
......
......@@ -21,20 +21,6 @@
#include "katecompletionwidget.h"
#include <QtWidgets/QBoxLayout>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDesktopWidget>
#include <QtWidgets/QHeaderView>
#include <QtCore/QTimer>
#include <QtWidgets/QLabel>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QSizeGrip>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QAbstractScrollArea>
#include <QtWidgets/QScrollBar>
#include <QtCore/QScopedPointer>
#include <kicon.h>
#include <kdialog.h>
#include <ktexteditor/codecompletionmodelcontrollerinterface.h>
......@@ -52,7 +38,18 @@
#include "kateargumenthintmodel.h"
#include "katepartdebug.h"
//#include "modeltest.h"
#include <QtCore/QScopedPointer>
#include <QtCore/QTimer>
#include <QtWidgets/QAbstractScrollArea>
#include <QtWidgets/QApplication>
#include <QtWidgets/QBoxLayout>
#include <QtWidgets/QDesktopWidget>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QScrollBar>
#include <QtWidgets/QSizeGrip>
#include <QtWidgets/QToolButton>
const bool hideAutomaticCompletionOnExactMatch = true;
......
......@@ -903,7 +903,6 @@ class KATEPART_TESTS_EXPORT KateDocument : public KTextEditor::Document,
/**
* create a MD5 digest of the file, if it is a local file.
* The result can be accessed through KateBuffer::digest().
* This is using KMD5::hexDigest().
*
* @return wheather the operation was attempted and succeeded.
*/
......
......@@ -35,7 +35,6 @@
#include <kconfig.h>
#include <kmimetypechooser.h>
#include "katepartdebug.h"
#include <kicon.h>
#include <knuminput.h>
#include <klocale.h>
......
......@@ -30,7 +30,6 @@
#include "katepartdebug.h"
#include <kcolordialog.h>
#include <kcolorscheme.h>
#include <kicon.h>
#include <kiconloader.h>
#include <kcolorutils.h>
......
......@@ -30,7 +30,6 @@
#include <klocale.h>
#include <klocalizedstring.h>
#include <kicon.h>
#include <kcolorscheme.h>
#include <kmessagebox.h>
#include <kcolordialog.h>
......
......@@ -40,7 +40,6 @@
#include <kcolorscheme.h>
#include <kmessagebox.h>
#include <kstandardaction.h>
#include <kicon.h>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QComboBox>
......
......@@ -34,7 +34,6 @@
#include <kactioncollection.h>
#include <klocalizedstring.h>
#include <kicon.h>
#include <kstandardaction.h>
#include <kglobal.h>
#include <sonnet/dialog.h>
......
......@@ -26,7 +26,6 @@
#include <klocale.h>
#include <kactioncollection.h>
#include <kguiitem.h>
#include <kicon.h>
#include <kstringhandler.h>
#include <kxmlguiclient.h>
#include <kxmlguifactory.h>
......
......@@ -69,7 +69,6 @@
#include "katepartdebug.h"
#include <kapplication.h>
#include <kcursor.h>
#include <kicon.h>
#include <klocale.h>
#include <kcharsets.h>
#include <kmessagebox.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