git-svn-id: svn://db.shs.com.ru/libs@306 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -105,7 +105,7 @@ g_main(this), g_selection(this) {
|
||||
g_selection.setData(1003, true);
|
||||
col = Qt::lightGray;
|
||||
_resize(QSizeF(100., 60.));
|
||||
QPen p(QColor(128, 128, 255), 1., Qt::DotLine);
|
||||
QPen p(QColor(128, 128, 255), lineThickness(), Qt::DotLine);
|
||||
p.setCosmetic(true);
|
||||
g_selection.setPen(p);
|
||||
g_selection.setBrush(QColor(128, 128, 255, 32));
|
||||
|
||||
@@ -81,7 +81,7 @@ void BlockView::_init() {
|
||||
sel_rect.hide();
|
||||
QColor sc = palette().color(QPalette::Highlight);
|
||||
sc.setAlphaF(0.6);
|
||||
QPen pen(sc.darker(200), 2., Qt::DotLine);
|
||||
QPen pen(sc.darker(200), lineThickness() + 1., Qt::DotLine);
|
||||
pen.setCosmetic(true);
|
||||
sel_rect.setPen(pen);
|
||||
sc.setAlphaF(0.2);
|
||||
@@ -654,7 +654,7 @@ void BlockView::keyPressEvent(QKeyEvent * e) {
|
||||
|
||||
void BlockView::resizeEvent(QResizeEvent * event) {
|
||||
QGraphicsView::resizeEvent(event);
|
||||
thick = qMax<int>(qRound(fontMetrics().size(0, "0").height() / 15.), 1);
|
||||
thick = lineThickness();
|
||||
adjustThumb();
|
||||
nav_target = _nav();
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(
|
||||
ui->setupUi(widget_props);
|
||||
widget_props->setEnabled(false);
|
||||
int fh = qMax<int>(QApplication::fontMetrics().size(0, "0").height(), 22);
|
||||
int thick = qMax<int>(qRound(QApplication::fontMetrics().size(0, "0").height() / 15.), 1);
|
||||
int thick = lineThickness();
|
||||
QSize sz(fh * 2.5, fh);
|
||||
QStringList styles;
|
||||
styles << tr("NoPen") << tr("Solid") << tr("Dash")
|
||||
|
||||
Reference in New Issue
Block a user