Merge pull request #642 from ryanccn/metaserver-show-default
Show default metaserver in settings
This commit is contained in:
commit
3ff26d5cfe
@ -48,6 +48,7 @@
|
|||||||
#include "tools/BaseProfiler.h"
|
#include "tools/BaseProfiler.h"
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "net/PasteUpload.h"
|
#include "net/PasteUpload.h"
|
||||||
|
#include "BuildConfig.h"
|
||||||
|
|
||||||
APIPage::APIPage(QWidget *parent) :
|
APIPage::APIPage(QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
@ -76,6 +77,8 @@ APIPage::APIPage(QWidget *parent) :
|
|||||||
ui->baseURLEntry->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->baseURLEntry));
|
ui->baseURLEntry->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->baseURLEntry));
|
||||||
ui->tabWidget->tabBar()->hide();
|
ui->tabWidget->tabBar()->hide();
|
||||||
|
|
||||||
|
ui->metaURL->setPlaceholderText(BuildConfig.META_URL);
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
resetBaseURLNote();
|
resetBaseURLNote();
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="metaURL">
|
<widget class="QLineEdit" name="metaURL">
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string>(Default)</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user