mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:44:26 +02:00
Code style fixes
This commit is contained in:
parent
919891d73c
commit
406768bf12
2 changed files with 2 additions and 6 deletions
interface/src
|
@ -2128,7 +2128,7 @@ void Application::updateMouseVoxels(float deltaTime, float& distance, BoxFace& f
|
|||
PerformanceWarning warn(showWarnings, "Application::updateMouseVoxels()");
|
||||
|
||||
_mouseVoxel.s = 0.0f;
|
||||
bool wasInitialized = _mouseVoxelScaleInitialized ;
|
||||
bool wasInitialized = _mouseVoxelScaleInitialized;
|
||||
if (Menu::getInstance()->isVoxelModeActionChecked() &&
|
||||
(fabs(_myAvatar->getVelocity().x) +
|
||||
fabs(_myAvatar->getVelocity().y) +
|
||||
|
|
|
@ -21,7 +21,6 @@ const QString PLACE_BUTTON_NAME = QObject::tr("Place voxels");
|
|||
const QString IMPORT_INFO = QObject::tr("<b>Import</b> %1 as voxels");
|
||||
const QString CANCEL_BUTTON_NAME = QObject::tr("Cancel");
|
||||
|
||||
|
||||
const QString DOWNLOAD_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
|
||||
const int SHORT_FILE_EXTENSION = 4;
|
||||
const int SECOND_INDEX_LETTER = 1;
|
||||
|
@ -167,7 +166,7 @@ void ImportDialog::accept() {
|
|||
void ImportDialog::saveCurrentFile(QString filename) {
|
||||
_currentFile = QFileInfo(filename).isFile() ? filename : "";
|
||||
}
|
||||
#include <iostream>
|
||||
|
||||
void ImportDialog::setLayout() {
|
||||
QGridLayout* gridLayout = (QGridLayout*) layout();
|
||||
gridLayout->addWidget(&_progressBar, 2, 0, 2, 1);
|
||||
|
@ -225,7 +224,6 @@ void ImportDialog::setLayout() {
|
|||
widget->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
|
||||
switchToResourcesParentIfRequired();
|
||||
|
||||
QIcon icon = QIcon("resources/icons/backButton.svg");
|
||||
QPushButton* button = (QPushButton*) findChild<QWidget*>("backButton");
|
||||
//button->setIcon(icon);
|
||||
|
@ -233,8 +231,6 @@ void ImportDialog::setLayout() {
|
|||
button = (QPushButton*) findChild<QWidget*>("forwardButton");
|
||||
button = (QPushButton*) findChild<QWidget*>("toParentButton");
|
||||
|
||||
|
||||
|
||||
QFile styleSheet("resources/styles/import_dialog.qss");
|
||||
if (styleSheet.open(QIODevice::ReadOnly)) {
|
||||
setStyleSheet(styleSheet.readAll());
|
||||
|
|
Loading…
Reference in a new issue