Skip to content

Commit

Permalink
static_cast to DialogPositiom
Browse files Browse the repository at this point in the history
  • Loading branch information
DSCaskey committed Aug 20, 2024
1 parent b338cfc commit 662d090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/vtools/dialogs/tools/dialogtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,11 +1457,11 @@ void DialogTool::FillCombo(QComboBox *box, GOType gType, FillComboBox rule, cons
// - Positions include Top left, Top right, Center, Bottom Left, and Botton right corner of screen.
void DialogTool::setDialogPosition()
{
int position = qApp->Settings()->getDialogPosition();
int position = qApp->Settings()->getDialogPosition();
QRect screenRect = m_screen->availableGeometry();
QRect dialogRect = frameGeometry();

switch(position)
switch(static_cast<DialogPosition>(position))
{
case DialogPosition::TopLeft:
{
Expand Down

0 comments on commit 662d090

Please sign in to comment.