mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-23 13:31:31 -05:00
-Bug fixes:
--Adjust xaos cells when any group modification is made, such as random, clear, or row/col change. --Remove some old style sheet code on the xforms tab that doesn't seem to make sense and was probably just a workaround for a transient Qt bug, of which there are hundreds.
This commit is contained in:
parent
e8b8d70f47
commit
16dbbf1b29
@ -2604,29 +2604,6 @@
|
|||||||
<property name="autoFillBackground">
|
<property name="autoFillBackground">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">QTabWidget::pane
|
|
||||||
{
|
|
||||||
border: 1px solid #898C95;
|
|
||||||
font: 9pt "Segoe UI";
|
|
||||||
}
|
|
||||||
|
|
||||||
QTabWidget::tab-bar
|
|
||||||
{
|
|
||||||
bottom: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
DoubleSpinBox
|
|
||||||
{
|
|
||||||
font: 9pt "Segoe UI";
|
|
||||||
}
|
|
||||||
|
|
||||||
SpinBox
|
|
||||||
{
|
|
||||||
font: 9pt "Segoe UI";
|
|
||||||
}
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="tabShape">
|
<property name="tabShape">
|
||||||
<enum>QTabWidget::Triangular</enum>
|
<enum>QTabWidget::Triangular</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -44,6 +44,9 @@ void FractoriumEmberController<T>::FillXaos()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_Fractorium->ui.XaosTableView->resizeRowsToContents();
|
||||||
|
m_Fractorium->ui.XaosTableView->resizeColumnsToContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -199,6 +202,8 @@ void Fractorium::OnRandomXaosButtonClicked(bool checked) { m_Controller->RandomX
|
|||||||
void Fractorium::OnXaosRowDoubleClicked(int logicalIndex)
|
void Fractorium::OnXaosRowDoubleClicked(int logicalIndex)
|
||||||
{
|
{
|
||||||
ToggleTableRow(ui.XaosTableView, logicalIndex);
|
ToggleTableRow(ui.XaosTableView, logicalIndex);
|
||||||
|
ui.XaosTableView->resizeRowsToContents();
|
||||||
|
ui.XaosTableView->resizeColumnsToContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -209,6 +214,8 @@ void Fractorium::OnXaosRowDoubleClicked(int logicalIndex)
|
|||||||
void Fractorium::OnXaosColDoubleClicked(int logicalIndex)
|
void Fractorium::OnXaosColDoubleClicked(int logicalIndex)
|
||||||
{
|
{
|
||||||
ToggleTableCol(ui.XaosTableView, logicalIndex);
|
ToggleTableCol(ui.XaosTableView, logicalIndex);
|
||||||
|
ui.XaosTableView->resizeRowsToContents();
|
||||||
|
ui.XaosTableView->resizeColumnsToContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
template class FractoriumEmberController<float>;
|
template class FractoriumEmberController<float>;
|
||||||
|
@ -31,7 +31,32 @@ void Fractorium::InitXformsUI()
|
|||||||
connect(ui.XformWeightNameTable, SIGNAL(cellChanged(int, int)), this, SLOT(OnXformNameChanged(int, int)), Qt::QueuedConnection);
|
connect(ui.XformWeightNameTable, SIGNAL(cellChanged(int, int)), this, SLOT(OnXformNameChanged(int, int)), Qt::QueuedConnection);
|
||||||
|
|
||||||
ui.CurrentXformCombo->setProperty("soloxform", -1);
|
ui.CurrentXformCombo->setProperty("soloxform", -1);
|
||||||
|
/*
|
||||||
|
ui.XformsTabWidget->setStyleSheet(
|
||||||
|
|
||||||
|
"QTabWidget::pane \n"
|
||||||
|
"{\n"
|
||||||
|
" border: 5px solid #898C95;\n"
|
||||||
|
" font: 9pt "Segoe UI";\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QTabWidget::tab-bar \n"
|
||||||
|
"{\n"
|
||||||
|
" bottom: -8px;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"DoubleSpinBox \n"
|
||||||
|
"{\n"
|
||||||
|
" font: 9pt "Segoe UI";\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"SpinBox \n"
|
||||||
|
"{\n"
|
||||||
|
" font: 9pt "Segoe UI";\n"
|
||||||
|
"}"
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
//For some reason linux makes these 24x24, even though the designer explicitly says 16x16.
|
//For some reason linux makes these 24x24, even though the designer explicitly says 16x16.
|
||||||
ui.AddXformButton->setIconSize(QSize(16, 16));
|
ui.AddXformButton->setIconSize(QSize(16, 16));
|
||||||
|
Loading…
Reference in New Issue
Block a user