Use kdelibs coding style
This commit is contained in:
parent
0084798a2c
commit
d965371d23
31 changed files with 201 additions and 234 deletions
|
@ -27,14 +27,15 @@
|
|||
|
||||
static QLatin1String urlRegex("(http|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?");
|
||||
|
||||
namespace Danbooru {
|
||||
namespace Danbooru
|
||||
{
|
||||
|
||||
GeneralPage::GeneralPage(DanbooruSettings* preferences, QWidget* parent): QWidget(parent)
|
||||
GeneralPage::GeneralPage(DanbooruSettings *preferences, QWidget *parent): QWidget(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
kcfg_Boards->insertStringList(preferences->boards());
|
||||
QRegularExpression regex(urlRegex);
|
||||
QRegularExpressionValidator* validator = new QRegularExpressionValidator(regex);
|
||||
QRegularExpressionValidator *validator = new QRegularExpressionValidator(regex);
|
||||
kcfg_Boards->lineEdit()->setValidator(validator);
|
||||
kcfg_MaxRating->setCurrentIndex(preferences->maxRating());
|
||||
|
||||
|
@ -44,5 +45,4 @@ GeneralPage::~GeneralPage()
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
} // namespace Danbooru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue