Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 51ea733

Browse files
committed
Fix style nitpicks with whitespace
Signed-off-by: Alexander Scheel <[email protected]>
1 parent 829cb08 commit 51ea733

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

include/MainWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class MainWindow : public QMainWindow
240240
/**
241241
* @brief We signal this to show the dialog
242242
*
243-
* This is to make sure we open the dialog in the event loop, not
243+
* This is to make sure we open the dialog in the event loop, not
244244
* before it even starts.
245245
*/
246246
void showOpenFileDialog();

include/TailoringWindow.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class TailoringWindow : public QMainWindow
173173

174174
void createTreeItem(QTreeWidgetItem* treeItem, struct xccdf_item* xccdfItem);
175175
void synchronizeTreeItemSelections(QTreeWidgetItem* treeItem);
176-
176+
177177
void createSelectionMacro(QTreeWidgetItem* treeItem, bool checkState, const QString& commandName);
178178

179179
MainWindow* mParentMainWindow;
@@ -217,7 +217,7 @@ class TailoringWindow : public QMainWindow
217217

218218
typedef std::map<struct xccdf_value*, std::vector<struct xccdf_rule*> > ValueAffectsRulesMap;
219219
ValueAffectsRulesMap mValueAffectsRulesMap;
220-
220+
221221
QAction* mDeselectAllAction;
222222

223223
private slots:

src/DiagnosticsDialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,18 @@ void DiagnosticsDialog::pushMessage(MessageSeverity severity, const QString& ful
138138
strSeverity = strSeverity.leftJustified(8);
139139

140140
std::cerr << stime << " | " << strSeverity.toUtf8().constData() << " | " << fullMessage.toUtf8().constData() << std::endl;
141-
141+
142142
QString outputMessage = fullMessage;
143143
if (format & MF_XML)
144144
{
145145
outputMessage = Qt::escape(outputMessage);
146146
}
147-
147+
148148
if (format & MF_PREFORMATTED)
149149
{
150150
outputMessage = QString("<pre>%1</pre>").arg(outputMessage);
151151
}
152-
152+
153153
mUI.messages->append(
154154
QString("<table><tr><td style=\"padding:5px 0px 0px 5px\"><pre>%1 </pre></td><td style=\"background: %2; padding:5px\"><pre>%3 </pre></td><td>%4</td></tr></table>\n")
155155
.arg(stime, bgCol, strSeverity, outputMessage)

src/TailoringWindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,18 @@ void TailoringWindow::synchronizeTreeItem()
266266
{
267267
// If itemsTree has focus, it will lose it when it becomes invisible
268268
QWidget* focused = QApplication::focusWidget();
269-
269+
270270
// If QTreeWidget remains visible during the sync, it'll recalculate its geometry for each checked
271271
// row. Configuring "visible" as false seems to be the only way to avoid entering the "if" in
272272
// https://github.com/qt/qt/blob/4.8/src/gui/itemviews/qabstractitemview.cpp#L3190
273273
mUI.itemsTree->setVisible(false);
274274
synchronizeTreeItemSelections(mBenchmarkItem);
275275
mUI.itemsTree->setVisible(true);
276-
276+
277277
// So we set the focus to the widget again
278278
if (focused)
279279
focused->setFocus();
280-
280+
281281
// Enables/disables "Deselect All action based on weather the top level rules/groups are checked"
282282
bool anySelected = false;
283283
for (int i = 0; i < mBenchmarkItem->childCount(); ++i)
@@ -671,7 +671,7 @@ void TailoringWindow::syncCollapsedItem(QTreeWidgetItem* item, QSet<QString>& us
671671
{
672672
struct xccdf_item* xccdfItem = getXccdfItemFromTreeItem(item);
673673
const QString id = QString::fromUtf8(xccdf_item_get_id(xccdfItem));
674-
674+
675675
for (int i = 0; i < item->childCount(); ++i)
676676
syncCollapsedItem(item->child(i), usedCollapsedIds);
677677

0 commit comments

Comments
 (0)