Browse Source

Uncrustify

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
812bd4c83a
  1. 6
      src/gui/addnewtorrentdialog.cpp
  2. 3
      src/gui/properties/peerlistdelegate.h
  3. 6
      src/gui/properties/proplistdelegate.cpp

6
src/gui/addnewtorrentdialog.cpp

@ -69,7 +69,10 @@ const QString KEY_SAVEPATHHISTORY = SETTINGS_KEY("SavePathHistory");
namespace namespace
{ {
// just a shortcut // just a shortcut
inline SettingsStorage *settings() { return SettingsStorage::instance(); } inline SettingsStorage *settings()
{
return SettingsStorage::instance();
}
} }
AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent)
@ -309,7 +312,6 @@ void AddNewTorrentDialog::showEvent(QShowEvent *event)
raise(); raise();
} }
void AddNewTorrentDialog::showAdvancedSettings(bool show) void AddNewTorrentDialog::showAdvancedSettings(bool show)
{ {
const int minimumW = minimumWidth(); const int minimumW = minimumWidth();

3
src/gui/properties/peerlistdelegate.h

@ -38,7 +38,8 @@
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "base/utils/string.h" #include "base/utils/string.h"
class PeerListDelegate: public QItemDelegate { class PeerListDelegate: public QItemDelegate
{
Q_OBJECT Q_OBJECT
public: public:

6
src/gui/properties/proplistdelegate.cpp

@ -45,12 +45,12 @@
#include "proplistdelegate.h" #include "proplistdelegate.h"
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
namespace { namespace
{
QPalette progressBarDisabledPalette() QPalette progressBarDisabledPalette()
{ {
auto getPalette = []() auto getPalette = []() {
{
QProgressBar bar; QProgressBar bar;
bar.setEnabled(false); bar.setEnabled(false);
QStyleOptionProgressBar opt; QStyleOptionProgressBar opt;

Loading…
Cancel
Save