Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
reloadroomwindow.cpp
Go to the documentation of this file.
1 #include "reloadroomwindow.h"
2 #include "ui_reloadroomwindow.h"
3 
5  QDialog(parent), ui(new Ui::ReloadRoom)
6 {
7  ui->setupUi(this);
8 }
9 
11 {
12  delete ui;
13 }
14 
15 QDialogButtonBox *ReloadRoomWindow::buttonBox() const
16 {
17  return ui->buttonBox;
18 }
19 
20 void ReloadRoomWindow::addRoom(const QString &roomName)
21 {
22  ui->roomList->addItem(roomName);
23 }
24 
26 {
27  ui->roomList->clear();
28 }
29 
31 {
32  auto *cur = ui->roomList->currentItem();
33  if (cur == nullptr)
34  return QLatin1String();
35  return cur->data(0).toString();
36 }
QDialogButtonBox * buttonBox() const
ReloadRoomWindow(QWidget *parent=nullptr)
QString currentRoom() const
Ui::ReloadRoom * ui
void addRoom(const QString &roomName)
~ReloadRoomWindow() override