mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Add a new button in the display tool bar to switch the background color in white or grey on the fly.
The check box for this functionality in the DiagramProporties window was deleted. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4022 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -55,7 +55,6 @@ void BorderPropertiesWidget::setProperties(const BorderProperties &bp) {
|
||||
ui -> m_rows_count_sp ->setValue (m_properties.rows_count);
|
||||
ui -> m_rows_height_sp ->setValue (m_properties.rows_height);
|
||||
ui -> m_display_rows_cb ->setChecked (m_properties.display_rows);
|
||||
ui -> m_grey_bg_cb ->setChecked (Diagram::background_color != Qt::white);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,14 +79,3 @@ const BorderProperties &BorderPropertiesWidget::properties () {
|
||||
void BorderPropertiesWidget::setReadOnly(const bool &ro) {
|
||||
ui->border_gb->setDisabled(ro);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief BorderPropertiesWidget::on_m_grey_bg_cb_clicked
|
||||
* @param checked
|
||||
*/
|
||||
void BorderPropertiesWidget::on_m_grey_bg_cb_clicked(bool checked) {
|
||||
if (checked)
|
||||
Diagram::background_color = Qt::gray;
|
||||
else
|
||||
Diagram::background_color = Qt::white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user