a322d9e2b8
* Clean-up in ConfigGroup Removed unused templated AddVar and related code. Replaced legacy types with `AZ::` ones. Cleaned up cpp file. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Add a few missing Q_OBJECT macros, remove some unused variables. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Apply some of clazy suggestions + simplifications * removed `emit` from non-signal function calls. * replaced `QStringLiteral("")` with a constexpr friendly `QLatin1String()` Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Fix a CNewLevelDialog focus bug Fixed an incorrect QTimer::singleShot invocation. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * match lambda to `messageChanged` signature Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * vs compilation fix + applied review Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * apply reviewer recommendation Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
44 lines
816 B
C++
44 lines
816 B
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
|
|
// Description : A dialog for getting a resolution info from users
|
|
|
|
// Notice : Refer to ViewportTitleDlg.cpp for a use case.
|
|
|
|
|
|
#pragma once
|
|
|
|
#if !defined(Q_MOC_RUN)
|
|
#include <QDialog>
|
|
#endif
|
|
|
|
namespace Ui
|
|
{
|
|
class CustomResolutionDlg;
|
|
}
|
|
|
|
class CCustomResolutionDlg
|
|
: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CCustomResolutionDlg(int w, int h, QWidget* pParent = nullptr);
|
|
~CCustomResolutionDlg();
|
|
|
|
int GetWidth() const;
|
|
int GetHeight() const;
|
|
|
|
protected:
|
|
void OnInitDialog();
|
|
|
|
int m_wDefault, m_hDefault;
|
|
|
|
QScopedPointer<Ui::CustomResolutionDlg> m_ui;
|
|
};
|