Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Switch user profile settings to QgsOptions
- Loading branch information
1 parent
98dddc8
commit ed48541
Showing
7 changed files
with
100 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/*************************************************************************** | ||
qgsuserprofileoptions.h | ||
--------------- | ||
begin : February 2023 | ||
copyright : (C) 2023 by Yoann Quenach de Quivillic | ||
email : yoann dot quenach at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#ifndef QGSUSERPROFILEOPTIONS_H | ||
#define QGSUSERPROFILEOPTIONS_H | ||
|
||
#include "ui_qgsuserprofileoptionswidgetbase.h" | ||
#include "qgsoptionswidgetfactory.h" | ||
#include "qgis_app.h" | ||
|
||
/** | ||
* \ingroup app | ||
* \class QgsUserProfileOptionsWidget | ||
* \brief An options widget showing USERPROFILE settings. | ||
* | ||
* \since QGIS 3.32 | ||
*/ | ||
class APP_EXPORT QgsUserProfileOptionsWidget : public QgsOptionsPageWidget, private Ui::QgsUserProfileOptionsWidgetBase | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
/** | ||
* Constructor for QgsUserProfileOptionsWidget with the specified \a parent widget. | ||
*/ | ||
QgsUserProfileOptionsWidget( QWidget *parent ); | ||
|
||
void apply() override; | ||
|
||
}; | ||
|
||
|
||
class QgsUserProfileOptionsFactory : public QgsOptionsWidgetFactory | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
QgsUserProfileOptionsFactory(); | ||
|
||
QgsOptionsPageWidget *createWidget( QWidget *parent = nullptr ) const override; | ||
QString pagePositionHint() const override; | ||
|
||
}; | ||
|
||
|
||
#endif // QGSUSERPROFILEOPTIONS_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters