Skip to content

Commit

Permalink
Move misc to ui library
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 11, 2024
1 parent 57cab32 commit e7bd9eb
Show file tree
Hide file tree
Showing 9 changed files with 18 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 @@ -274,7 +274,6 @@ set(
GUI/namedcontainer.cpp
#GUI/BrushWidgets/brushwidget.cpp
GUI/Settings/labeledslider.cpp
GUI/uilayout.cpp
GUI/toolbox.cpp
)

Expand Down Expand Up @@ -326,7 +325,6 @@ set(
GUI/timelinehighlightwidget.h
GUI/timelinewidget.h
GUI/timelinewrappernode.h
GUI/toolbutton.h
GUI/twocolumnlayout.h
GUI/welcomedialog.h
GUI/widgetstack.h
Expand Down Expand Up @@ -395,8 +393,6 @@ set(
#GUI/BrushWidgets/brushwidget.h
boxtypemenu.h
GUI/Settings/labeledslider.h
GUI/uilayout.h
GUI/vlabel.h
)

set(
Expand Down
4 changes: 2 additions & 2 deletions src/app/GUI/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
#include "GUI/qdoubleslider.h"
#include "window.h"
#include "GUI/aboutwidget.h"
#include "GUI/uilayout.h"
#include "GUI/toolbutton.h"
#include "widgets/uilayout.h"
#include "widgets/toolbutton.h"

class VideoEncoder;
class RenderWidget;
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/toolbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "mainwindow.h"

#include "appsupport.h"
#include "vlabel.h"
#include "widgets/vlabel.h"

void MainWindow::setupToolBox()
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/welcomedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <QPainter>
#include <QLabel>

#include "toolbutton.h"
#include "widgets/toolbutton.h"
#include "appsupport.h"

WelcomeDialog::WelcomeDialog(QMenu *recentMenu,
Expand Down
4 changes: 4 additions & 0 deletions src/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ set(
widgets/alignwidget.cpp
widgets/assetswidget.cpp
widgets/buttonbase.cpp
widgets/uilayout.cpp
)

set(
Expand All @@ -49,6 +50,9 @@ set(
widgets/alignwidget.h
widgets/assetswidget.h
widgets/buttonbase.h
widgets/toolbutton.h
widgets/uilayout.h
widgets/vlabel.h
)

if(NOT WIN32)
Expand Down
4 changes: 3 additions & 1 deletion src/app/GUI/toolbutton.h → src/ui/widgets/toolbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H

#include "ui_global.h"

#include <QToolButton>
#include <QEvent>
#include <QDropEvent>
Expand All @@ -33,7 +35,7 @@
#include <QList>
#include <QUrl>

class ToolButton : public QToolButton
class UI_EXPORT ToolButton : public QToolButton
{
Q_OBJECT
public:
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions src/app/GUI/uilayout.h → src/ui/widgets/uilayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
#ifndef UILAYOUT_H
#define UILAYOUT_H

#include "ui_global.h"

#include <QWidget>
#include <QSplitter>
#include <QVBoxLayout>
#include <vector>

class UIDock : public QWidget
class UI_EXPORT UIDock : public QWidget
{
Q_OBJECT

Expand Down Expand Up @@ -69,7 +71,7 @@ class UIDock : public QWidget
void writeSettings();
};

class UILayout : public QSplitter
class UI_EXPORT UILayout : public QSplitter
{
Q_OBJECT

Expand Down
4 changes: 3 additions & 1 deletion src/app/GUI/vlabel.h → src/ui/widgets/vlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
#ifndef VLABEL_H
#define VLABEL_H

#include "ui_global.h"

#include <QLabel>
#include <QStylePainter>
#include <QPaintEvent>

class VLabel : public QLabel
class UI_EXPORT VLabel : public QLabel
{
Q_OBJECT

Expand Down

0 comments on commit e7bd9eb

Please sign in to comment.