69
69
colorBtn = new ColorButton();
70
70
topLayout->addWidget(colorBtn, 0, 1);
72
topLayout->addWidget(new QLabel(tr("Font")), 1, 0);
74
72
buttonFont = new QPushButton(tr( "&Font" ));
75
topLayout->addWidget(buttonFont, 1, 1);
73
buttonFont->setIcon(QIcon(":/font.png"));
74
topLayout->addWidget(buttonFont, 0, 2);
77
topLayout->addWidget(new QLabel(tr("Alignment")), 2, 0);
76
topLayout->addWidget(new QLabel(tr("Alignment")), 1, 0);
78
77
alignmentBox = new QComboBox();
79
78
alignmentBox->addItem( tr( "Center" ) );
80
79
alignmentBox->addItem( tr( "Left" ) );
81
80
alignmentBox->addItem( tr( "Right" ) );
82
topLayout->addWidget(alignmentBox, 2, 1);
81
topLayout->addWidget(alignmentBox, 1, 1);
84
83
if (type == AxisTitle){
85
topLayout->addWidget(new QLabel(tr("Distance to axis")), 3, 0);
84
topLayout->addWidget(new QLabel(tr("Distance to axis")), 2, 0);
86
85
distanceBox = new QSpinBox();
87
86
distanceBox->setRange(0, 1000);
88
topLayout->addWidget(distanceBox, 3, 1);
87
topLayout->addWidget(distanceBox, 2, 1);
89
88
invertTitleBox = new QCheckBox(tr("&Inverted"));
90
89
invertTitleBox->hide();
91
90
connect(invertTitleBox, SIGNAL(toggled(bool)), this, SLOT(apply()));
92
topLayout->addWidget(invertTitleBox, 4, 1);
91
topLayout->addWidget(invertTitleBox, 1, 2);
95
topLayout->setColumnStretch(2, 1);
94
topLayout->setColumnStretch(3, 1);
97
96
QVBoxLayout *vl = new QVBoxLayout();
98
97
buttonApply = new QPushButton(tr( "&Apply to..." ));