Skip to content

Commit

Permalink
For now, skip the progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 26, 2024
1 parent c398d05 commit d74091b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions avogadro/qtplugins/surfaces/orbitals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void Orbitals::loadOrbitals()
}

m_dialog->fillTable(m_basis);
m_dialog->show();
}

void Orbitals::moleculeChanged(unsigned int changes)
Expand Down Expand Up @@ -425,6 +426,8 @@ void Orbitals::renderOrbital(unsigned int row)
if (row == 0)
return;

// table rows are indexed from 1
// orbitals are indexed from 0
unsigned int orbital = row - 1;

#ifndef NDEBUG
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/surfaces/orbitaltablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ QVariant OrbitalTableModel::data(const QModelIndex& index, int role) const
int stages = (orb->totalStages == 0) ? 1 : orb->totalStages;
percent /= float(stages);
percent += (orb->stage - 1) * (100.0 / float(stages));
return percent;
return QString("%L1 %").arg(percent);
}
case C_Symmetry:
symbol = orb->symmetry;
Expand Down
4 changes: 2 additions & 2 deletions avogadro/qtplugins/surfaces/orbitalwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ OrbitalWidget::OrbitalWidget(QWidget* parent, Qt::WindowFlags f)
ui.table->horizontalHeader()->setSectionResizeMode(
QHeaderView::ResizeToContents);
ui.table->horizontalHeader()->setStretchLastSection(true);
ui.table->setItemDelegateForColumn(OrbitalTableModel::C_Status,
new ProgressBarDelegate(this));
// ui.table->setItemDelegateForColumn(OrbitalTableModel::C_Status,
// new ProgressBarDelegate(this));
ui.table->setItemDelegateForColumn(OrbitalTableModel::C_Symmetry,
new RichTextDelegate(this));
// TODO: Support orbital symmetry labels
Expand Down

1 comment on commit d74091b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.