Disable titlebar double click (#67)
* Remove classic xsheet layout. Set compact default. * Disable double click on non viewer titlebars
This commit is contained in:
parent
a63e912d60
commit
a57d5ece0a
3 changed files with 15 additions and 7 deletions
|
@ -1172,8 +1172,7 @@ QList<ComboBoxItem> PreferencesPopup::getComboItemList(
|
|||
{tr("Enable Tools For Level Only"), 1},
|
||||
{tr("Show Tools For Level Only"), 2}}},
|
||||
{xsheetLayoutPreference,
|
||||
{{tr("Compact"), "Compact"},
|
||||
{tr("Roomy"), "Roomy"}}},
|
||||
{{tr("Compact"), "Compact"}, {tr("Roomy"), "Roomy"}}},
|
||||
{DragCellsBehaviour,
|
||||
{{tr("Cells Only"), 0}, {tr("Cells and Column Data"), 1}}},
|
||||
{keyframeType, // note that the value starts from 1, not 0
|
||||
|
|
|
@ -84,9 +84,15 @@ Toolbar::Toolbar(QWidget *parent, bool isVertical)
|
|||
SLOT(setIsExpanded(bool)));
|
||||
|
||||
updateToolbar();
|
||||
if (isVertical) {
|
||||
QIcon moreIcon(":Resources/moredown.svg");
|
||||
QToolButton *more = findChild<QToolButton *>("qt_toolbar_ext_button");
|
||||
more->setIcon(moreIcon);
|
||||
} else {
|
||||
QIcon moreIcon(":Resources/more.svg");
|
||||
QToolButton *more = findChild<QToolButton *>("qt_toolbar_ext_button");
|
||||
more->setIcon(moreIcon);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
@ -378,10 +378,13 @@ void DockWidget::mouseReleaseEvent(QMouseEvent *me) {
|
|||
//! DockWidgets respond to title bar double clicks maximizing the widget in
|
||||
//! layout's contents rect.
|
||||
void DockWidget::mouseDoubleClickEvent(QMouseEvent *me) {
|
||||
std::string name = objectName().toStdString();
|
||||
if (name == "FlipBook" || name == "SceneViewer" || name == "ComboViewer") {
|
||||
if (!m_floating && isDragGrip(me->pos())) {
|
||||
parentLayout()->setMaximized(this, !m_maximized);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue