mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Uncrustify
This commit is contained in:
parent
112a24f9b6
commit
3d4cead200
8 changed files with 83 additions and 80 deletions
|
@ -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();
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -51,12 +51,12 @@
|
||||||
#include "propertieswidget.h"
|
#include "propertieswidget.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…
Reference in a new issue