mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Fix checks
This commit is contained in:
parent
de64e3b8d3
commit
bbe8d9167f
@ -35,7 +35,7 @@ QgsIdeOptionsWidget::QgsIdeOptionsWidget( QWidget *parent )
|
||||
connect( mGenerateTokenButton, &QPushButton::clicked, this, &QgsIdeOptionsWidget::generateGitHubToken );
|
||||
|
||||
QgsSettings settings;
|
||||
mTokenLineEdit->setText(settings.value("pythonConsole/accessTokenGithub", QString() ).toString() );
|
||||
mTokenLineEdit->setText( settings.value( "pythonConsole/accessTokenGithub", QString() ).toString() );
|
||||
}
|
||||
|
||||
QgsIdeOptionsWidget::~QgsIdeOptionsWidget() = default;
|
||||
@ -47,20 +47,21 @@ QString QgsIdeOptionsWidget::helpKey() const
|
||||
|
||||
void QgsIdeOptionsWidget::apply()
|
||||
{
|
||||
QgsSettings settings;
|
||||
settings.setValue("pythonConsole/accessTokenGithub", mTokenLineEdit->text() );
|
||||
QgsSettings settings;
|
||||
settings.setValue( "pythonConsole/accessTokenGithub", mTokenLineEdit->text() );
|
||||
}
|
||||
|
||||
void QgsIdeOptionsWidget::generateGitHubToken()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl(
|
||||
QStringLiteral("https://github.com/settings/tokens/new?description=%1&scopes=gist").arg(tr("QGIS Code Editor"))
|
||||
));
|
||||
QDesktopServices::openUrl( QUrl(
|
||||
QStringLiteral( "https://github.com/settings/tokens/new?description=%1&scopes=gist" ).arg( tr( "QGIS Code Editor" ) )
|
||||
) );
|
||||
}
|
||||
|
||||
//
|
||||
// QgsIdeOptionsFactory
|
||||
//
|
||||
|
||||
QgsIdeOptionsFactory::QgsIdeOptionsFactory()
|
||||
: QgsOptionsWidgetFactory( tr( "IDE" ), QIcon(), QStringLiteral( "ide" ) )
|
||||
{
|
||||
@ -79,5 +80,5 @@ QgsOptionsPageWidget *QgsIdeOptionsFactory::createWidget( QWidget *parent ) cons
|
||||
|
||||
QString QgsIdeOptionsFactory::pagePositionHint() const
|
||||
{
|
||||
return QString();
|
||||
return QString();
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class QgsIdeOptionsWidget : public QgsOptionsPageWidget, private Ui::QgsIdeOptio
|
||||
|
||||
void apply() override;
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
|
||||
void generateGitHubToken();
|
||||
|
||||
@ -60,5 +60,4 @@ class QgsIdeOptionsFactory : public QgsOptionsWidgetFactory
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // QGSIDEOPTIONS_H
|
||||
|
@ -2,6 +2,14 @@
|
||||
<ui version="4.0">
|
||||
<class>QgsIdeOptionsWidgetBase</class>
|
||||
<widget class="QWidget" name="QgsIdeOptionsWidgetBase">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>235</width>
|
||||
<height>117</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_16">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
@ -16,7 +24,7 @@
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<widget class="QgsScrollArea" name="scrollArea">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
@ -28,8 +36,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>500</width>
|
||||
<height>432</height>
|
||||
<width>235</width>
|
||||
<height>117</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
@ -87,6 +95,14 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QgsScrollArea</class>
|
||||
<extends>QScrollArea</extends>
|
||||
<header>qgsscrollarea.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>scrollArea</tabstop>
|
||||
<tabstop>mTokenLineEdit</tabstop>
|
||||
|
Loading…
x
Reference in New Issue
Block a user