Skip to content

Commit

Permalink
Fixed layout issue on lower resolution screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Feb 4, 2021
1 parent 4f1c67e commit 5e360f5
Show file tree
Hide file tree
Showing 6 changed files with 366 additions and 253 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cmake_policy(SET CMP0043 NEW)
# Software version
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "1")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
add_definitions(-DOPENTERAPLUS_VERSION="${CPACK_PACKAGE_VERSION}" )
add_definitions(-DOPENTERAPLUS_VERSION_MAJOR="${CPACK_PACKAGE_VERSION_MAJOR}" )
Expand Down
15 changes: 15 additions & 0 deletions client/resources/stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,21 @@ QFrame#frameInvitees{
background-color: rgba(0,0,100,50%);
}

/* Customizations for ParticipantWidget */
QPushButton#btnFilterSessionsTypes:checked{
color:white;
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 rgb(100,100,100), stop: 0.2 black, stop:1 rgb(100,100,100));
border: 2px solid rgb(145, 145, 145);
border-radius: 5px;
}

QPushButton#btnFilterSessionsTypes[checkable=true]:!checked{
color:white;
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 black, stop: 0.2 rgb(100,100,100), stop:1 black);
border: 1px solid rgb(96, 96, 96);
border-radius: 5px;
}

/* Customizations for SessionInviteWidget */
QPushButton#btnManageInvitees:checked, QPushButton#btnShowOnlineParticipants:checked, QPushButton#btnShowOnlineUsers:checked, QPushButton#btnShowOnlineDevices:checked,
QPushButton#btnAdvancedConfig:checked{
Expand Down
2 changes: 1 addition & 1 deletion client/src/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ QLabel#lblLogo, QLabel#lblVersion, QLabel#lblUser{background-color:transparent;}
</property>
<property name="minimumSize">
<size>
<width>1689</width>
<width>0</width>
<height>50</height>
</size>
</property>
Expand Down
6 changes: 6 additions & 0 deletions client/src/editors/ParticipantWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ ParticipantWidget::ParticipantWidget(ComManager *comMan, const TeraData *data, Q
// Default display
ui->tabNav->setCurrentIndex(0);
ui->tabInfos->setCurrentIndex(0);
ui->frameFilterSessionTypes->hide();
}

ParticipantWidget::~ParticipantWidget()
Expand Down Expand Up @@ -1356,3 +1357,8 @@ void ParticipantWidget::on_cmbSessionType_currentIndexChanged(int index)
}

}

void ParticipantWidget::on_btnFilterSessionsTypes_clicked()
{
ui->frameFilterSessionTypes->setVisible(ui->btnFilterSessionsTypes->isChecked());
}
1 change: 1 addition & 0 deletions client/src/editors/ParticipantWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private slots:
void on_cmbServices_currentIndexChanged(int index);
void on_btnEmailWeb_clicked();
void on_cmbSessionType_currentIndexChanged(int index);
void on_btnFilterSessionsTypes_clicked();
};

#endif // PARTICIPANTWIDGET_H
Loading

0 comments on commit 5e360f5

Please sign in to comment.