Skip to content

Commit

Permalink
Move button to ToolBar
Browse files Browse the repository at this point in the history
  • Loading branch information
Abel You committed Feb 11, 2025
1 parent 142b7b4 commit 0ace1b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions toonz/sources/toonz/colormodelviewer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

#include <Qdebug>
#include <qstack.h>

// Tnz6 includes
#include "colormodelviewer.h"
Expand Down Expand Up @@ -51,6 +52,7 @@
#include <QUrl>
#include <QMenu>
#include <qtoolbutton.h>
#include <tpanels.h>

#define LINES "Lines"
#define AREAS "Areas"
Expand Down Expand Up @@ -106,8 +108,10 @@ ColorModelViewer::ColorModelViewer(QWidget *parent)
pickLineStyles->setToolTip(tip);
pickLineStyles->setCheckable(true);

// TODO: add to right place
this->layout()->addWidget(pickLineStyles);
QToolBar *toolBar = this->findChild<QToolBar *>("FlipConsolePlayToolBar");
if (toolBar) {
toolBar->addWidget(pickLineStyles);
}

setToolCursor(m_imageViewer, ToolCursor::PickerCursor);

Expand Down
2 changes: 0 additions & 2 deletions toonz/sources/toonz/flipbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ FlipBook::FlipBook(QWidget *parent, QString viewerTitle,
->getOutputProperties()
->getFrameRate());

mainLayout->addWidget(m_flipConsole);

m_previewUpdateTimer.setSingleShot(true);

ret = ret && connect(parentWidget(), SIGNAL(closeButtonPressed()), this,
Expand Down
2 changes: 1 addition & 1 deletion toonz/sources/toonz/flipbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class FlipBook : public QWidget,

public:
enum Flags { eDontKeepFilesOpened = 0x1 };

FlipBook(QWidget *parent = 0, QString viewerTitle = QString(),
std::vector<int> flipConsoleButtonMask =
{FlipConsole::eFilledRaster, FlipConsole::eDefineSubCamera,
Expand Down

0 comments on commit 0ace1b5

Please sign in to comment.