@@ -128,7 +128,7 @@ QString QgsAuthOAuth2Edit::parentConfigId() const
128
128
return cie->configId ();
129
129
}
130
130
131
- // slot
131
+
132
132
void QgsAuthOAuth2Edit::setupConnections ()
133
133
{
134
134
// Action and interaction connections
@@ -186,7 +186,7 @@ void QgsAuthOAuth2Edit::setupConnections()
186
186
}
187
187
}
188
188
189
- // slot
189
+
190
190
void QgsAuthOAuth2Edit::configValidityChanged ()
191
191
{
192
192
validateConfig ();
@@ -471,14 +471,14 @@ void QgsAuthOAuth2Edit::updateTokenCacheFile( bool curpersist ) const
471
471
}
472
472
}
473
473
474
- // slot
474
+
475
475
void QgsAuthOAuth2Edit::tabIndexChanged ( int indx )
476
476
{
477
477
mCurTab = indx;
478
478
validateConfig ();
479
479
}
480
480
481
- // slot
481
+
482
482
void QgsAuthOAuth2Edit::populateGrantFlows ()
483
483
{
484
484
cmbbxGrantFlow->addItem ( QgsAuthOAuth2Config::grantFlowString ( QgsAuthOAuth2Config::AuthCode ),
@@ -489,7 +489,7 @@ void QgsAuthOAuth2Edit::populateGrantFlows()
489
489
static_cast <int >( QgsAuthOAuth2Config::ResourceOwner ) );
490
490
}
491
491
492
- // slot
492
+
493
493
void QgsAuthOAuth2Edit::definedCustomDirChanged ( const QString &path )
494
494
{
495
495
QFileInfo pinfo ( path );
@@ -518,7 +518,6 @@ void QgsAuthOAuth2Edit::softwareStatementJwtPathChanged( const QString &path )
518
518
}
519
519
520
520
521
- // slot
522
521
void QgsAuthOAuth2Edit::setCurrentDefinedConfig ( const QString &id )
523
522
{
524
523
mDefinedId = id;
@@ -539,7 +538,7 @@ void QgsAuthOAuth2Edit::currentDefinedItemChanged( QListWidgetItem *cur, QListWi
539
538
}
540
539
}
541
540
542
- // slot
541
+
543
542
void QgsAuthOAuth2Edit::selectCurrentDefinedConfig ()
544
543
{
545
544
if ( mDefinedId .isEmpty () )
@@ -566,7 +565,6 @@ void QgsAuthOAuth2Edit::selectCurrentDefinedConfig()
566
565
}
567
566
}
568
567
569
- // slot
570
568
void QgsAuthOAuth2Edit::getDefinedCustomDir ()
571
569
{
572
570
QString extradir = QFileDialog::getExistingDirectory ( this , tr ( " Select extra directory to parse" ),
@@ -640,15 +638,13 @@ void QgsAuthOAuth2Edit::removeTokenCacheFile()
640
638
btnTokenClear->setEnabled ( hasTokenCacheFile () );
641
639
}
642
640
643
- // slot
644
641
void QgsAuthOAuth2Edit::updateDefinedConfigsCache ()
645
642
{
646
643
QString extradir = leDefinedDirPath->text ();
647
644
mDefinedConfigsCache .clear ();
648
645
mDefinedConfigsCache = QgsAuthOAuth2Config::mappedOAuth2ConfigsCache ( this , extradir );
649
646
}
650
647
651
- // slot
652
648
void QgsAuthOAuth2Edit::loadDefinedConfigs ()
653
649
{
654
650
lstwdgDefinedConfigs->blockSignals ( true );
@@ -716,7 +712,6 @@ bool QgsAuthOAuth2Edit::onStatementTab() const
716
712
return mCurTab == statementTab ();
717
713
}
718
714
719
- // slot
720
715
void QgsAuthOAuth2Edit::updateGrantFlow ( int indx )
721
716
{
722
717
if ( cmbbxGrantFlow->currentIndex () != indx )
@@ -761,7 +756,7 @@ void QgsAuthOAuth2Edit::updateGrantFlow( int indx )
761
756
lePassword->setText ( QString () );
762
757
}
763
758
764
- // slot
759
+
765
760
void QgsAuthOAuth2Edit::exportOAuthConfig ()
766
761
{
767
762
if ( !onCustomTab () || !mValid )
@@ -802,7 +797,7 @@ void QgsAuthOAuth2Edit::exportOAuthConfig()
802
797
mOAuthConfigCustom ->setName ( QString::null );
803
798
}
804
799
805
- // slot
800
+
806
801
void QgsAuthOAuth2Edit::importOAuthConfig ()
807
802
{
808
803
if ( !onCustomTab () )
@@ -847,13 +842,13 @@ void QgsAuthOAuth2Edit::importOAuthConfig()
847
842
loadConfig ( configmap );
848
843
}
849
844
850
- // slot
845
+
851
846
void QgsAuthOAuth2Edit::descriptionChanged ()
852
847
{
853
848
mOAuthConfigCustom ->setDescription ( pteDescription->toPlainText () );
854
849
}
855
850
856
- // slot
851
+
857
852
void QgsAuthOAuth2Edit::populateAccessMethods ()
858
853
{
859
854
cmbbxAccessMethod->addItem ( QgsAuthOAuth2Config::accessMethodString ( QgsAuthOAuth2Config::Header ),
@@ -864,7 +859,7 @@ void QgsAuthOAuth2Edit::populateAccessMethods()
864
859
static_cast <int >( QgsAuthOAuth2Config::Query ) );
865
860
}
866
861
867
- // slot
862
+
868
863
void QgsAuthOAuth2Edit::updateConfigAccessMethod ( int indx )
869
864
{
870
865
mOAuthConfigCustom ->setAccessMethod ( static_cast <QgsAuthOAuth2Config::AccessMethod>( indx ) );
@@ -887,7 +882,7 @@ void QgsAuthOAuth2Edit::addQueryPairRow( const QString &key, const QString &val
887
882
tblwdgQueryPairs->setItem ( rowCnt, 1 , valItm );
888
883
}
889
884
890
- // slot
885
+
891
886
void QgsAuthOAuth2Edit::populateQueryPairs ( const QVariantMap &querypairs, bool append )
892
887
{
893
888
if ( !append )
@@ -903,7 +898,7 @@ void QgsAuthOAuth2Edit::populateQueryPairs( const QVariantMap &querypairs, bool
903
898
}
904
899
}
905
900
906
- // slot
901
+
907
902
void QgsAuthOAuth2Edit::queryTableSelectionChanged ()
908
903
{
909
904
bool hassel = tblwdgQueryPairs->selectedItems ().count () > 0 ;
@@ -930,7 +925,7 @@ QVariantMap QgsAuthOAuth2Edit::queryPairs() const
930
925
return querypairs;
931
926
}
932
927
933
- // slot
928
+
934
929
void QgsAuthOAuth2Edit::addQueryPair ()
935
930
{
936
931
addQueryPairRow ( QString (), QString () );
@@ -939,13 +934,13 @@ void QgsAuthOAuth2Edit::addQueryPair()
939
934
tblwdgQueryPairs->edit ( tblwdgQueryPairs->currentIndex () );
940
935
}
941
936
942
- // slot
937
+
943
938
void QgsAuthOAuth2Edit::removeQueryPair ()
944
939
{
945
940
tblwdgQueryPairs->removeRow ( tblwdgQueryPairs->currentRow () );
946
941
}
947
942
948
- // slot
943
+
949
944
void QgsAuthOAuth2Edit::clearQueryPairs ()
950
945
{
951
946
for ( int i = tblwdgQueryPairs->rowCount (); i > 0 ; --i )
@@ -1149,13 +1144,3 @@ void QgsAuthOAuth2Edit::getSoftwareStatementConfig()
1149
1144
}
1150
1145
}
1151
1146
1152
- QString QgsAuthOAuth2Edit::registrationEndpoint () const
1153
- {
1154
- return mRegistrationEndpoint ;
1155
- }
1156
-
1157
- void QgsAuthOAuth2Edit::setRegistrationEndpoint ( const QString ®istrationEndpoint )
1158
- {
1159
- mRegistrationEndpoint = registrationEndpoint;
1160
- }
1161
-
0 commit comments