avoid lengthy accelerator details with Nvidia GPUs
This commit is contained in:
@ -146,10 +146,12 @@ void ImageViewer::reset_view()
|
|||||||
antialias = settings.value("antialias", false).toBool();
|
antialias = settings.value("antialias", false).toBool();
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
// reset state of checkable push buttons (only after main layout is set up)
|
// reset state of checkable push buttons and combo box (after main layout is set up)
|
||||||
auto *lo = layout();
|
auto *lo = layout();
|
||||||
if (lo) {
|
if (lo) {
|
||||||
|
// grab layout manager for the top bar
|
||||||
lo = lo->itemAt(0)->layout();
|
lo = lo->itemAt(0)->layout();
|
||||||
|
// grab the first 4 buttons after the menu bar
|
||||||
auto *button = qobject_cast<QPushButton *>(lo->itemAt(1)->widget());
|
auto *button = qobject_cast<QPushButton *>(lo->itemAt(1)->widget());
|
||||||
button->setChecked(usessao);
|
button->setChecked(usessao);
|
||||||
button = qobject_cast<QPushButton *>(lo->itemAt(2)->widget());
|
button = qobject_cast<QPushButton *>(lo->itemAt(2)->widget());
|
||||||
@ -158,6 +160,7 @@ void ImageViewer::reset_view()
|
|||||||
button->setChecked(showbox);
|
button->setChecked(showbox);
|
||||||
button = qobject_cast<QPushButton *>(lo->itemAt(4)->widget());
|
button = qobject_cast<QPushButton *>(lo->itemAt(4)->widget());
|
||||||
button->setChecked(showaxes);
|
button->setChecked(showaxes);
|
||||||
|
// grab the last entry -> group selector
|
||||||
auto *cb = qobject_cast<QComboBox *>(lo->itemAt(lo->count() - 1)->widget());
|
auto *cb = qobject_cast<QComboBox *>(lo->itemAt(lo->count() - 1)->widget());
|
||||||
cb->setCurrentText("all");
|
cb->setCurrentText("all");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -850,7 +850,7 @@ void LammpsGui::about()
|
|||||||
if (!lammps.is_running()) {
|
if (!lammps.is_running()) {
|
||||||
start_lammps();
|
start_lammps();
|
||||||
capturer->BeginCapture();
|
capturer->BeginCapture();
|
||||||
lammps.command("info accel config");
|
lammps.command("info config");
|
||||||
capturer->EndCapture();
|
capturer->EndCapture();
|
||||||
info = capturer->GetCapture();
|
info = capturer->GetCapture();
|
||||||
auto start = info.find("LAMMPS version:");
|
auto start = info.find("LAMMPS version:");
|
||||||
|
|||||||
Reference in New Issue
Block a user