Skip to content

Commit

Permalink
Move assetswidget to ui library
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 11, 2024
1 parent a96c393 commit 57cab32
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ set(
GUI/Settings/presetsettingswidget.cpp
GUI/aboutwidget.cpp
GUI/audiohandler.cpp
GUI/assetswidget.cpp
GUI/bookmarkedwidget.cpp
GUI/buttonslist.cpp
GUI/canvasbasewrappernode.cpp
Expand Down Expand Up @@ -309,7 +308,6 @@ set(
GUI/Settings/presetsettingswidget.h
GUI/aboutwidget.h
GUI/audiohandler.h
GUI/assetswidget.h
GUI/bookmarkedwidget.h
GUI/buttonslist.h
GUI/canvasbasewrappernode.h
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 @@ -70,7 +70,7 @@
#include "Settings/settingsdialog.h"
#include "appsupport.h"

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

MainWindow *MainWindow::sInstance = nullptr;

Expand Down
2 changes: 2 additions & 0 deletions src/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ set(
SOURCES
widgets/actionbutton.cpp
widgets/alignwidget.cpp
widgets/assetswidget.cpp
widgets/buttonbase.cpp
)

Expand All @@ -46,6 +47,7 @@ set(
ui_global.h
widgets/actionbutton.h
widgets/alignwidget.h
widgets/assetswidget.h
widgets/buttonbase.h
)

Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion src/app/GUI/assetswidget.h → src/ui/widgets/assetswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#ifndef ASSETSWIDGET_H
#define ASSETSWIDGET_H

#include "ui_global.h"

#include <QObject>
#include <QWidget>
#include <QList>
Expand All @@ -37,7 +39,7 @@
#include "FileCacheHandlers/filecachehandler.h"
#include "fileshandler.h"

class AssetsTreeWidget : public QTreeWidget
class UI_EXPORT AssetsTreeWidget : public QTreeWidget
{
public:
explicit AssetsTreeWidget(QWidget *parent);
Expand Down

0 comments on commit 57cab32

Please sign in to comment.