Skip to content

Commit cdf7992

Browse files
committed
gui: rename qComboCheckBoxes to DropdownCheckboxes
Signed-off-by: LucasYuki <[email protected]>
1 parent db07db8 commit cdf7992

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/gui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (Qt5_FOUND AND BUILD_GUI)
6969
src/bufferTreeDescriptor.cpp
7070
src/chartsWidget.cpp
7171
src/GUIProgress.cpp
72-
src/qComboCheckBoxes.cpp
72+
src/dropdownCheckboxes.cpp
7373
resources/resource.qrc
7474
)
7575

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// SPDX-License-Identifier: BSD-3-Clause
22
// Copyright (c) 2021-2025, The OpenROAD Authors
33

4-
#include "qComboCheckBoxes.h"
4+
#include "dropdownCheckboxes.h"
55

66
#include <qnamespace.h>
77

88
namespace gui {
99

10-
qComboCheckBoxes::qComboCheckBoxes(const std::string& name,
10+
DropdownCheckboxes::DropdownCheckboxes(const std::string& name,
1111
const std::string& all_text,
1212
QWidget* parent)
1313
: QComboBox(parent),
@@ -19,7 +19,7 @@ qComboCheckBoxes::qComboCheckBoxes(const std::string& name,
1919
setup();
2020
}
2121

22-
qComboCheckBoxes::qComboCheckBoxes(const QString& name,
22+
DropdownCheckboxes::DropdownCheckboxes(const QString& name,
2323
const QString& all_text,
2424
QWidget* parent)
2525
: QComboBox(parent),
@@ -31,7 +31,7 @@ qComboCheckBoxes::qComboCheckBoxes(const QString& name,
3131
setup();
3232
}
3333

34-
void qComboCheckBoxes::setup()
34+
void DropdownCheckboxes::setup()
3535
{
3636
name_item_->setFlags(Qt::NoItemFlags);
3737
all_item_->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled
@@ -46,15 +46,15 @@ void qComboCheckBoxes::setup()
4646
connect(model_,
4747
&QStandardItemModel::itemChanged,
4848
this,
49-
&qComboCheckBoxes::itemChanged);
49+
&DropdownCheckboxes::itemChanged);
5050
}
5151

52-
void qComboCheckBoxes::clear()
52+
void DropdownCheckboxes::clear()
5353
{
5454
model_->removeRows(2, model_->rowCount() - 2);
5555
}
5656

57-
void qComboCheckBoxes::itemChanged(QStandardItem* item)
57+
void DropdownCheckboxes::itemChanged(QStandardItem* item)
5858
{
5959
if (updating_check_boxes_) {
6060
return;
@@ -94,7 +94,7 @@ void qComboCheckBoxes::itemChanged(QStandardItem* item)
9494
updating_check_boxes_ = false;
9595
}
9696

97-
std::vector<QString> qComboCheckBoxes::selectedItems()
97+
std::vector<QString> DropdownCheckboxes::selectedItems()
9898
{
9999
std::vector<QString> selected;
100100
for (auto row = 2; row < model_->rowCount(); row++) {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ class Clock;
1616
} // namespace sta
1717

1818
namespace gui {
19-
class qComboCheckBoxes : public QComboBox
19+
class DropdownCheckboxes : public QComboBox
2020
{
2121
Q_OBJECT
2222
public:
23-
qComboCheckBoxes(const std::string& name,
23+
DropdownCheckboxes(const std::string& name,
2424
const std::string& all_text = "All",
2525
QWidget* parent = nullptr);
26-
qComboCheckBoxes(const QString& name,
26+
DropdownCheckboxes(const QString& name,
2727
const QString& all_text = "All",
2828
QWidget* parent = nullptr);
2929
void clear();

src/gui/src/staGui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ TimingControlsDialog::TimingControlsDialog(QWidget* parent)
11121112
layout_(new QFormLayout),
11131113
path_count_spin_box_(new QSpinBox(this)),
11141114
corner_box_(new QComboBox(this)),
1115-
clock_box_(new qComboCheckBoxes(QString("Select Clocks"),
1115+
clock_box_(new DropdownCheckboxes(QString("Select Clocks"),
11161116
QString("All Clocks"),
11171117
this)),
11181118
unconstrained_(new QCheckBox(this)),

src/gui/src/staGui.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "gui/gui.h"
2525
#include "odb/db.h"
2626
#include "odb/dbBlockCallBackObj.h"
27-
#include "qComboCheckBoxes.h"
27+
#include "dropdownCheckboxes.h"
2828
#include "sta/PathExpanded.hh"
2929
#include "sta/Sta.hh"
3030
#include "staGuiInterface.h"
@@ -428,7 +428,7 @@ class TimingControlsDialog : public QDialog
428428

429429
QSpinBox* path_count_spin_box_;
430430
QComboBox* corner_box_;
431-
qComboCheckBoxes* clock_box_;
431+
DropdownCheckboxes* clock_box_;
432432

433433
QCheckBox* unconstrained_;
434434
QCheckBox* one_path_per_endpoint_;

0 commit comments

Comments
 (0)