mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Min. sizes for copy component
This commit is contained in:
@@ -49,6 +49,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->initOtherSwiftVersions();
|
this->initOtherSwiftVersions();
|
||||||
|
this->setWidths();
|
||||||
|
|
||||||
ui->cb_ShowAll->setChecked(m_nameFilterDisables);
|
ui->cb_ShowAll->setChecked(m_nameFilterDisables);
|
||||||
connect(ui->rb_Cache, &QRadioButton::toggled, [ = ](bool) { this->initCurrentDirectories(true); });
|
connect(ui->rb_Cache, &QRadioButton::toggled, [ = ](bool) { this->initCurrentDirectories(true); });
|
||||||
@@ -300,8 +301,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CCopyConfigurationComponent::resizeEvent(QResizeEvent *event)
|
void CCopyConfigurationComponent::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
const int w = 0.45 * this->width();
|
this->setWidths();
|
||||||
ui->cb_OtherVersions->setMaximumWidth(w);
|
|
||||||
QFrame::resizeEvent(event);
|
QFrame::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -434,6 +434,16 @@ namespace BlackGui
|
|||||||
this->setNameFilterDisables(ui->cb_ShowAll->isChecked());
|
this->setNameFilterDisables(ui->cb_ShowAll->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CCopyConfigurationComponent::setWidths()
|
||||||
|
{
|
||||||
|
const int w = this->width();
|
||||||
|
const int wCb = 0.45 * w;
|
||||||
|
const int wView = 0.4 * w;
|
||||||
|
ui->cb_OtherVersions->setMaximumWidth(wCb);
|
||||||
|
ui->tv_Destination->setMinimumWidth(wView);
|
||||||
|
ui->tv_Source->setMinimumWidth(wView);
|
||||||
|
}
|
||||||
|
|
||||||
const CLogCategoryList &CCopyConfigurationWizardPage::getLogCategories()
|
const CLogCategoryList &CCopyConfigurationWizardPage::getLogCategories()
|
||||||
{
|
{
|
||||||
static const CLogCategoryList cats { CLogCategory::wizard(), CLogCategory::guiComponent() };
|
static const CLogCategoryList cats { CLogCategory::wizard(), CLogCategory::guiComponent() };
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ namespace BlackGui
|
|||||||
//! Set name filter disables from ui
|
//! Set name filter disables from ui
|
||||||
void changeNameFilterDisables();
|
void changeNameFilterDisables();
|
||||||
|
|
||||||
|
//! Set widths
|
||||||
|
void setWidths();
|
||||||
|
|
||||||
QStringList m_otherVersionDirs;
|
QStringList m_otherVersionDirs;
|
||||||
QScopedPointer<Ui::CCopyConfigurationComponent> ui;
|
QScopedPointer<Ui::CCopyConfigurationComponent> ui;
|
||||||
QString m_initializedSourceDir;
|
QString m_initializedSourceDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user