mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Random whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38e24512b7
commit
5a4485b63b
4 changed files with 20 additions and 20 deletions
|
@ -240,11 +240,11 @@ struct QUnixOSVersion
|
||||||
|
|
||||||
static QString unquote(const char *begin, const char *end)
|
static QString unquote(const char *begin, const char *end)
|
||||||
{
|
{
|
||||||
if (*begin == '"') {
|
if (*begin == '"') {
|
||||||
Q_ASSERT(end[-1] == '"');
|
Q_ASSERT(end[-1] == '"');
|
||||||
return QString::fromLatin1(begin + 1, end - begin - 2);
|
return QString::fromLatin1(begin + 1, end - begin - 2);
|
||||||
}
|
}
|
||||||
return QString::fromLatin1(begin, end - begin);
|
return QString::fromLatin1(begin, end - begin);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool readEtcOsRelease(QUnixOSVersion &v)
|
static bool readEtcOsRelease(QUnixOSVersion &v)
|
||||||
|
@ -613,9 +613,9 @@ extern "C" {
|
||||||
bool isWin7Or8()
|
bool isWin7Or8()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
return (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based) >= QSysInfo::WV_WINDOWS7;
|
return (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based) >= QSysInfo::WV_WINDOWS7;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -509,7 +509,7 @@ void PlannerSettingsWidget::setDescRate(int rate)
|
||||||
|
|
||||||
void PlannerSettingsWidget::sacFactorChanged(const double factor)
|
void PlannerSettingsWidget::sacFactorChanged(const double factor)
|
||||||
{
|
{
|
||||||
plannerModel->setSacFactor(factor);
|
plannerModel->setSacFactor(factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlannerSettingsWidget::problemSolvingTimeChanged(const int minutes)
|
void PlannerSettingsWidget::problemSolvingTimeChanged(const int minutes)
|
||||||
|
|
|
@ -15,21 +15,21 @@ class DiveShareExportDialog;
|
||||||
|
|
||||||
class DiveShareExportDialog : public QDialog
|
class DiveShareExportDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit DiveShareExportDialog(QWidget *parent = 0);
|
explicit DiveShareExportDialog(QWidget *parent = 0);
|
||||||
~DiveShareExportDialog();
|
~DiveShareExportDialog();
|
||||||
static DiveShareExportDialog *instance();
|
static DiveShareExportDialog *instance();
|
||||||
void prepareDivesForUpload(bool);
|
void prepareDivesForUpload(bool);
|
||||||
private:
|
private:
|
||||||
Ui::DiveShareExportDialog *ui;
|
Ui::DiveShareExportDialog *ui;
|
||||||
bool exportSelected;
|
bool exportSelected;
|
||||||
QNetworkReply *reply;
|
QNetworkReply *reply;
|
||||||
private
|
private
|
||||||
slots:
|
slots:
|
||||||
void UIDFromBrowser();
|
void UIDFromBrowser();
|
||||||
void doUpload();
|
void doUpload();
|
||||||
void finishedSlot();
|
void finishedSlot();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DIVESHAREEXPORTDIALOG_H
|
#endif // DIVESHAREEXPORTDIALOG_H
|
||||||
|
|
|
@ -450,7 +450,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
|
||||||
bool qSaveUid = ui.saveUidLocal->checkState();
|
bool qSaveUid = ui.saveUidLocal->checkState();
|
||||||
SettingsObjectWrapper::instance()->cloud_storage->setSaveUserIdLocal(qSaveUid);
|
SettingsObjectWrapper::instance()->cloud_storage->setSaveUserIdLocal(qSaveUid);
|
||||||
|
|
||||||
//WARN: Dirk, this seems to be wrong, I coundn't really understand the code.
|
//WARN: Dirk, this seems to be wrong, I coundn't really understand the code.
|
||||||
if (qSaveUid) {
|
if (qSaveUid) {
|
||||||
QString qSettingUid = s.value("subsurface_webservice_uid").toString();
|
QString qSettingUid = s.value("subsurface_webservice_uid").toString();
|
||||||
QString qFileUid = QString(prefs.userid);
|
QString qFileUid = QString(prefs.userid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue