refactor: do not include full modules in qt files
This commit is contained in:
@ -20,9 +20,6 @@
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
DeskflowApplication::DeskflowApplication(int &argc, char **argv) : QApplication(argc, argv)
|
||||
{
|
||||
|
||||
|
||||
@ -19,9 +19,6 @@
|
||||
#include "HotkeyDialog.h"
|
||||
#include "ui_HotkeyDialog.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
HotkeyDialog::HotkeyDialog(QWidget *parent, Hotkey &hotkey)
|
||||
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||
ui{std::make_unique<Ui::HotkeyDialog>()},
|
||||
|
||||
@ -17,9 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "KeySequence.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QSettings>
|
||||
|
||||
// this table originally comes from Qt sources (gui/kernel/qkeysequence.cpp)
|
||||
// and is heavily modified for Deskflow
|
||||
|
||||
@ -48,12 +48,11 @@
|
||||
#include <QMenuBar>
|
||||
#include <QMessageBox>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkInterface>
|
||||
#include <QPushButton>
|
||||
#include <QRegularExpression>
|
||||
#include <QScrollBar>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtNetwork>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
|
||||
@ -26,8 +26,6 @@
|
||||
#include "gui/validators/ValidationError.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
using namespace deskflow::gui;
|
||||
using enum ScreenConfig::Modifier;
|
||||
|
||||
@ -18,10 +18,11 @@
|
||||
|
||||
#include "ScreenSetupModel.h"
|
||||
|
||||
#include "gui/config/Screen.h"
|
||||
#include <QIODevice>
|
||||
#include <QIcon>
|
||||
#include <QMimeData>
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include "gui/config/Screen.h"
|
||||
|
||||
const QString ScreenSetupModel::m_MimeType = "application/x-" DESKFLOW_APP_ID "-screen";
|
||||
|
||||
|
||||
@ -21,9 +21,13 @@
|
||||
#include "ScreenSettingsDialog.h"
|
||||
#include "ScreenSetupModel.h"
|
||||
|
||||
#include <QDrag>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QDragMoveEvent>
|
||||
#include <QHeaderView>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QMimeData>
|
||||
#include <QMouseEvent>
|
||||
#include <QResizeEvent>
|
||||
|
||||
ScreenSetupView::ScreenSetupView(QWidget *parent) : QTableView(parent)
|
||||
{
|
||||
@ -151,4 +155,4 @@ void ScreenSetupView::initViewItemOption(QStyleOptionViewItem *option) const
|
||||
option->decorationPosition = QStyleOptionViewItem::Top;
|
||||
option->displayAlignment = Qt::AlignCenter;
|
||||
option->textElideMode = Qt::ElideMiddle;
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
#include <QAbstractButton>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QtCore>
|
||||
|
||||
using namespace deskflow::gui::proxy;
|
||||
using enum ScreenConfig::Modifier;
|
||||
|
||||
@ -26,8 +26,6 @@
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
using enum ScreenConfig::SwitchCorner;
|
||||
using ServerProtocol = synergy::gui::ServerProtocol;
|
||||
|
||||
@ -17,10 +17,12 @@
|
||||
*/
|
||||
|
||||
#include "TrashScreenWidget.h"
|
||||
#include "ScreenSetupModel.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QDropEvent>
|
||||
#include <QMimeData>
|
||||
|
||||
#include "ScreenSetupModel.h"
|
||||
|
||||
void TrashScreenWidget::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
|
||||
@ -40,9 +40,7 @@
|
||||
#include <QGuiApplication>
|
||||
#include <QMessageBox>
|
||||
#include <QObject>
|
||||
#include <QtCore>
|
||||
#include <QtGlobal>
|
||||
#include <QtGui>
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
@ -20,8 +20,12 @@
|
||||
#include <array>
|
||||
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <QtDBus>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusError>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusReply>
|
||||
#endif
|
||||
|
||||
//
|
||||
|
||||
@ -24,8 +24,6 @@
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QVariant>
|
||||
#include <QtCore>
|
||||
#include <QtNetwork>
|
||||
#include <functional>
|
||||
|
||||
using namespace deskflow::gui;
|
||||
|
||||
@ -19,9 +19,6 @@
|
||||
#include "Screen.h"
|
||||
#include "config/ScreenConfig.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
using namespace deskflow::gui::proxy;
|
||||
using enum ScreenConfig::Modifier;
|
||||
using enum ScreenConfig::SwitchCorner;
|
||||
|
||||
@ -24,7 +24,6 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QGuiApplication>
|
||||
#include <QtCore>
|
||||
|
||||
using namespace deskflow::gui;
|
||||
|
||||
|
||||
@ -33,8 +33,6 @@
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
using namespace deskflow::gui;
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore>
|
||||
|
||||
namespace deskflow::gui::env_vars {
|
||||
|
||||
|
||||
@ -16,8 +16,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <QString>
|
||||
#ifndef __APPLE__
|
||||
#include <QtDBus>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusPendingReply>
|
||||
#endif
|
||||
|
||||
#include "platform/XWindowsKeyState.h"
|
||||
|
||||
Reference in New Issue
Block a user