summaryrefslogtreecommitdiff
path: root/src/gui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/mainwindow.cpp')
-rw-r--r--src/gui/mainwindow.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index 26e19b6..9ce340a 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -28,7 +28,11 @@ MainWindow::MainWindow(QWidget *parent) :
_toolPalette = new ToolPalette(this);
addToolBar(_toolPalette);
- _tikzScene = new TikzScene(_tikzDocument, _toolPalette, this);
+ _stylePalette = new StylePalette(this);
+ addDockWidget(Qt::RightDockWidgetArea, _stylePalette);
+
+
+ _tikzScene = new TikzScene(_tikzDocument, _toolPalette, _stylePalette, this);
ui->tikzView->setScene(_tikzScene);
_pristine = true;
@@ -79,11 +83,16 @@ void MainWindow::changeEvent(QEvent *event)
{
if (event->type() == QEvent::ActivationChange && isActiveWindow()) {
tikzit->setActiveWindow(this);
- tikzit->stylePalette()->raise();
+ //tikzit->stylePalette()->raise();
}
QMainWindow::changeEvent(event);
}
+StylePalette *MainWindow::stylePalette() const
+{
+ return _stylePalette;
+}
+
void MainWindow::updateFileName()
{
setWindowTitle("TiKZiT - " + _tikzDocument->shortName());