mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
19d5dd8ec7
Source files are no longer separated by UI and non-UI and similar, but only by their build target. * ui/ -> part/ * Move all source files from conf/ to part/ * Keep config skeleton definitions in conf/, needed for the mobile target too * Move editdrawingtooldialogtest.h from conf/autotests/ to autotests/ * ui/data/icons/ -> icons/ * Move /part.cpp, /part.rc and similar files to part/ * Adapt include paths in source files * Adapt CMakeLists.txt files (in / and in subdirectories) * Adapt /Messages.sh
39 lines
809 B
C++
39 lines
809 B
C++
#ifndef CLOSEDIALOGHELPER_H
|
|
#define CLOSEDIALOGHELPER_H
|
|
|
|
#include <QDialogButtonBox>
|
|
#include <QObject>
|
|
|
|
#include "../part/part.h"
|
|
|
|
namespace TestingUtils
|
|
{
|
|
/*
|
|
* The CloseDialogHelper class is a helper to auto close modals opened in tests.
|
|
*/
|
|
class CloseDialogHelper : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CloseDialogHelper(Okular::Part *p, QDialogButtonBox::StandardButton b);
|
|
|
|
CloseDialogHelper(QWidget *w, QDialogButtonBox::StandardButton b);
|
|
|
|
// Close a modal dialog, which may not be associated to any other widget
|
|
CloseDialogHelper(QDialogButtonBox::StandardButton b);
|
|
|
|
~CloseDialogHelper() override;
|
|
|
|
private slots:
|
|
void closeDialog();
|
|
|
|
private:
|
|
QWidget *m_widget;
|
|
QDialogButtonBox::StandardButton m_button;
|
|
bool m_clicked;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // CLOSEDIALOGHELPER_H
|