Use kdelibs coding style

This commit is contained in:
Luca Beltrame 2015-03-21 23:05:57 +01:00
parent 0084798a2c
commit d965371d23
31 changed files with 201 additions and 234 deletions

View file

@ -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