diff options
Diffstat (limited to 'Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp')
-rw-r--r-- | Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp index 2f7d544..ddbbd5c 100644 --- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp +++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp @@ -88,12 +88,6 @@ namespace Swift { handLineButton->setAutoExclusive(true); connect(handLineButton, SIGNAL(clicked()), this, SLOT(setHandLineMode())); - filledHandLineButton = new QToolButton(this); - filledHandLineButton->setIcon(QIcon(":/icons/filledHandline.png")); - filledHandLineButton->setCheckable(true); - filledHandLineButton->setAutoExclusive(true); - connect(filledHandLineButton, SIGNAL(clicked()), this, SLOT(setFilledHandLineMode())); - textButton = new QToolButton(this); textButton->setIcon(QIcon(":/icons/text.png")); textButton->setCheckable(true); @@ -113,14 +107,14 @@ namespace Swift { connect(selectButton, SIGNAL(clicked()), this, SLOT(setSelectMode())); toolboxLayout->addWidget(rubberButton, 0, 0); - toolboxLayout->addWidget(lineButton, 0, 1); - toolboxLayout->addWidget(rectButton, 0, 2); + toolboxLayout->addWidget(selectButton, 0, 1); + toolboxLayout->addWidget(lineButton, 0, 2); toolboxLayout->addWidget(circleButton, 1, 0); toolboxLayout->addWidget(handLineButton, 1, 1); - toolboxLayout->addWidget(filledHandLineButton, 1, 2); + toolboxLayout->addWidget(rectButton, 1, 2); toolboxLayout->addWidget(textButton, 2, 0); toolboxLayout->addWidget(polygonButton, 2, 1); - toolboxLayout->addWidget(selectButton, 2, 2); + sidebarLayout->addLayout(toolboxLayout); sidebarLayout->addWidget(moveUpButton); @@ -202,11 +196,6 @@ namespace Swift { graphicsView->setMode(GView::HandLine); } - void QtWhiteboardWindow::setFilledHandLineMode() - { - graphicsView->setMode(GView::FilledHandLine); - } - void QtWhiteboardWindow::setTextMode() { graphicsView->setMode(GView::Text); |