comparison widgets/PluginPathConfigurator.cpp @ 1297:bc8134fb9752 plugin-path-config

Minor improvement to (still nasty) button layout on OSX
author Chris Cannam
date Fri, 08 Jun 2018 15:11:11 +0100
parents 34b941921ac8
children f24f64e441ac
comparison
equal deleted inserted replaced
1296:34b941921ac8 1297:bc8134fb9752
64 m_reset->setText(tr("Reset to Default")); 64 m_reset->setText(tr("Reset to Default"));
65 m_reset->setToolTip(tr("Reset the list for this plugin type to its default")); 65 m_reset->setToolTip(tr("Reset the list for this plugin type to its default"));
66 connect(m_reset, SIGNAL(clicked()), this, SLOT(resetClicked())); 66 connect(m_reset, SIGNAL(clicked()), this, SLOT(resetClicked()));
67 buttons->addWidget(m_reset); 67 buttons->addWidget(m_reset);
68 68
69 buttons->addStretch(50);
70
71 m_seePlugins = new QPushButton;
72 m_seePlugins->setText(tr("Review plugins..."));
73 connect(m_seePlugins, SIGNAL(clicked()), this, SLOT(seePluginsClicked()));
74 buttons->addWidget(m_seePlugins);
75
69 int row = 0; 76 int row = 0;
70 77
71 m_header = new QLabel; 78 m_header = new QLabel;
72 m_header->setText(tr("Plugin locations for plugin type:")); 79 m_header->setText(tr("Plugin locations for plugin type:"));
73 m_layout->addWidget(m_header, row, 0); 80 m_layout->addWidget(m_header, row, 0);
85 m_layout->setRowStretch(row, 20); 92 m_layout->setRowStretch(row, 20);
86 connect(m_list, SIGNAL(currentRowChanged(int)), 93 connect(m_list, SIGNAL(currentRowChanged(int)),
87 this, SLOT(currentLocationChanged(int))); 94 this, SLOT(currentLocationChanged(int)));
88 ++row; 95 ++row;
89 96
90 m_layout->addLayout(buttons, row, 0, 1, 2, Qt::AlignLeft); 97 m_layout->addLayout(buttons, row, 0, 1, 3);
91
92 m_seePlugins = new QPushButton;
93 m_seePlugins->setText(tr("Review plugins..."));
94 connect(m_seePlugins, SIGNAL(clicked()), this, SLOT(seePluginsClicked()));
95 m_layout->addWidget(m_seePlugins, row, 2);
96 98
97 ++row; 99 ++row;
98 100
99 m_envOverride = new QCheckBox; 101 m_envOverride = new QCheckBox;
100 connect(m_envOverride, SIGNAL(stateChanged(int)), 102 connect(m_envOverride, SIGNAL(stateChanged(int)),