scale palette, selection filter, and inspector with -x option

This commit is contained in:
Marc Sabatella 2014-12-21 15:09:40 -07:00
parent 80a58a987e
commit f01a42981b
6 changed files with 27 additions and 3 deletions

View file

@ -792,6 +792,15 @@ InspectorEmpty::InspectorEmpty(QWidget* parent)
e.setupUi(addWidget());
}
//---------------------------------------------------------
// sizeHint
//---------------------------------------------------------
QSize InspectorEmpty::sizeHint() const
{
return QSize(255 * guiScaling, 170 * guiScaling);
}
//---------------------------------------------------------
// InspectorBarLine
//---------------------------------------------------------

View file

@ -338,7 +338,7 @@ class InspectorEmpty : public InspectorBase {
public:
InspectorEmpty(QWidget* parent);
virtual QSize sizeHint() const {return QSize(255,170);}
virtual QSize sizeHint() const;
};
} // namespace Ms

View file

@ -338,5 +338,15 @@ void PaletteBox::displayMore(const QString& s)
{
mscore->showMasterPalette(s);
}
//---------------------------------------------------------
// sizeHint
//---------------------------------------------------------
QSize PaletteBoxScrollArea::sizeHint() const
{
return QSize(170 * guiScaling, 170 * guiScaling);
}
}

View file

@ -57,7 +57,7 @@ class PaletteBoxScrollArea : public QScrollArea {
Q_OBJECT
public:
virtual QSize sizeHint() const {return QSize(170,170);}
virtual QSize sizeHint() const;
};
} // namespace Ms

View file

@ -132,4 +132,9 @@ void SelectionWindow::setScore(Score* score)
updateFilteredElements();
}
QSize SelectionWindow::sizeHint() const
{
return QSize(170 * guiScaling, 170 * guiScaling);
}
}

View file

@ -23,7 +23,7 @@ private slots:
public:
SelectionWindow(QWidget *parent = 0, Score* score = 0);
~SelectionWindow();
virtual QSize sizeHint() const {return QSize(170,170);}
virtual QSize sizeHint() const;
void setScore(Score*);
};