Skip to content

Commit

Permalink
Move more to ui lib
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 12, 2024
1 parent e7bd9eb commit cc1c2ae
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ set(
GUI/canvaswrappernode.cpp
GUI/changewidthwidget.cpp
#GUI/closesignalingdockwidget.cpp
GUI/ecombobox.cpp
GUI/editablecombobox.cpp
GUI/ekeyfilter.cpp
GUI/ewidgetsimpl.cpp
GUI/fakemenubar.cpp
Expand Down Expand Up @@ -313,8 +311,6 @@ set(
GUI/canvaswrappernode.h
GUI/changewidthwidget.h
#GUI/closesignalingdockwidget.h
GUI/ecombobox.h
GUI/editablecombobox.h
GUI/ekeyfilter.h
GUI/ewidgetsimpl.h
GUI/fakemenubar.h
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/BoxesList/boxsinglewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool BoxSingleWidget::sStaticPixmapsLoaded = false;
#include "PathEffects/patheffectcollection.h"
#include "Sound/esoundobjectbase.h"

#include "GUI/ecombobox.h"
#include "widgets/ecombobox.h"

#include <QApplication>
#include <QDrag>
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/RenderWidgets/outputsettingsprofilesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "outputsettingsdialog.h"
#include "outputsettingsdisplaywidget.h"
#include "GUI/global.h"
#include "GUI/editablecombobox.h"
#include "widgets/editablecombobox.h"

OutputProfilesDialog::OutputProfilesDialog(
const OutputSettings &currentSettings,
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/fontswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <QIntValidator>
#include <QLabel>

#include "editablecombobox.h"
#include "widgets/editablecombobox.h"

FontsWidget::FontsWidget(QWidget *parent)
: QWidget(parent)
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/layouthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "layouthandler.h"
#include "Private/document.h"
#include "editablecombobox.h"
#include "widgets/editablecombobox.h"

#include <QPushButton>

Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#include "GUI/global.h"
#include "filesourcescache.h"
#include "fillstrokesettings.h"
#include "editablecombobox.h"
#include "widgets/editablecombobox.h"

#include "Sound/soundcomposition.h"
#include "GUI/BoxesList/boxsinglewidget.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/renderoutputwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "renderoutputwidget.h"

#include "GUI/edialogs.h"
#include "editablecombobox.h"
#include "widgets/editablecombobox.h"

#include <QLineEdit>
#include <QDir>
Expand Down
4 changes: 4 additions & 0 deletions src/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ set(
widgets/actionbutton.cpp
widgets/alignwidget.cpp
widgets/assetswidget.cpp
widgets/ecombobox.cpp
widgets/editablecombobox.cpp
widgets/buttonbase.cpp
widgets/uilayout.cpp
)
Expand All @@ -50,6 +52,8 @@ set(
widgets/alignwidget.h
widgets/assetswidget.h
widgets/buttonbase.h
widgets/ecombobox.h
widgets/editablecombobox.h
widgets/toolbutton.h
widgets/uilayout.h
widgets/vlabel.h
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion src/app/GUI/ecombobox.h → src/ui/widgets/ecombobox.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
#ifndef ECOMBOBOX_H
#define ECOMBOBOX_H

#include "ui_global.h"

#include <QComboBox>

class eComboBox : public QComboBox {
class UI_EXPORT eComboBox : public QComboBox
{
public:
using QComboBox::QComboBox;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
#ifndef EDITABLECOMBOBOX_H
#define EDITABLECOMBOBOX_H

#include "ui_global.h"

#include <QComboBox>

class EditableComboBox : public QComboBox
class UI_EXPORT EditableComboBox : public QComboBox
{
public:
EditableComboBox(QWidget* const parent,
Expand Down

0 comments on commit cc1c2ae

Please sign in to comment.