Fix add layout warnings

This commit is contained in:
manongjohn 2021-03-28 15:10:17 -04:00
parent 63874b4309
commit 90aee11ba3
14 changed files with 28 additions and 28 deletions

View file

@ -31,7 +31,7 @@ AboutPopup::AboutPopup(QWidget* parent)
TFilePath baseLicensePath = TEnv::getStuffDir() + "doc/LICENSE";
TFilePath tahomaLicensePath = baseLicensePath + "LICENSE.txt";
QVBoxLayout* mainLayout = new QVBoxLayout(this);
QVBoxLayout* mainLayout = new QVBoxLayout();
QLabel* logo = new QLabel(this);

View file

@ -138,7 +138,7 @@ AntialiasPopup::AntialiasPopup()
QSizePolicy::MinimumExpanding));
scrollArea->setWidget(topWidget);
QGridLayout *topLayout = new QGridLayout(this);
QGridLayout *topLayout = new QGridLayout();
topWidget->setLayout(topLayout);
//------------------------- Parameters --------------------------

View file

@ -129,7 +129,7 @@ AudioRecordingPopup::AudioRecordingPopup()
recordGridLay->addWidget(new QLabel(tr(" ")), 1, 0, Qt::AlignCenter);
recordGridLay->addWidget(m_audioLevelsDisplay, 2, 0, 1, 4,
Qt::AlignCenter);
QHBoxLayout *recordLay = new QHBoxLayout(this);
QHBoxLayout *recordLay = new QHBoxLayout();
recordLay->setSpacing(4);
recordLay->setContentsMargins(0, 0, 0, 0);
{
@ -140,7 +140,7 @@ AudioRecordingPopup::AudioRecordingPopup()
recordLay->addStretch();
}
recordGridLay->addLayout(recordLay, 3, 0, 1, 4, Qt::AlignCenter);
QHBoxLayout *playLay = new QHBoxLayout(this);
QHBoxLayout *playLay = new QHBoxLayout();
playLay->setSpacing(4);
playLay->setContentsMargins(0, 0, 0, 0);
{

View file

@ -501,7 +501,7 @@ ExportScenePopup::ExportScenePopup(std::vector<TFilePath> scenes)
bool ret = true;
QVBoxLayout *layout = new QVBoxLayout(this);
QVBoxLayout *layout = new QVBoxLayout();
// m_command = new QLabel(this);
// layout->addWidget(m_command);

View file

@ -492,7 +492,7 @@ LevelSettingsPopup::LevelSettingsPopup()
m_topLayout->addWidget(dpiBox);
dpiBox->hide();
QHBoxLayout* resLayout = new QHBoxLayout(this);
QHBoxLayout* resLayout = new QHBoxLayout();
resLayout->addWidget(imageResTitle);
resLayout->addWidget(m_imageResLabel);
resLayout->addStretch();

View file

@ -161,7 +161,7 @@ LinesFadePopup::LinesFadePopup()
QSizePolicy::MinimumExpanding));
scrollArea->setWidget(topWidget);
QGridLayout *topLayout = new QGridLayout(this);
QGridLayout *topLayout = new QGridLayout();
topWidget->setLayout(topLayout);
//------------------------- Parameters --------------------------

View file

@ -244,7 +244,7 @@ LipSyncPopup::LipSyncPopup()
m_playButton->setIcon(m_playIcon);
m_columnLabel = new QLabel(tr("Audio Source: "), this);
QHBoxLayout *soundLayout = new QHBoxLayout(this);
QHBoxLayout *soundLayout = new QHBoxLayout();
soundLayout->addWidget(m_columnLabel);
soundLayout->addWidget(m_soundLevels);
soundLayout->addWidget(m_playButton);
@ -267,7 +267,7 @@ LipSyncPopup::LipSyncPopup()
m_scriptEdit->setFixedHeight(80);
m_scriptEdit->setFixedWidth(840);
QGridLayout *rhubarbLayout = new QGridLayout(this);
QGridLayout *rhubarbLayout = new QGridLayout();
rhubarbLayout->addLayout(soundLayout, 0, 0, 1, 5);
rhubarbLayout->addWidget(m_audioFile, 1, 0, 1, 5);
rhubarbLayout->addWidget(m_scriptLabel, 2, 0, 1, 3);
@ -285,7 +285,7 @@ LipSyncPopup::LipSyncPopup()
m_file->setFixedWidth(840);
QLabel *pathLabel = new QLabel(tr("Lip Sync Data File: "), this);
QGridLayout *fileLay = new QGridLayout(this);
QGridLayout *fileLay = new QGridLayout();
fileLay->setSpacing(4);
fileLay->setMargin(10);
fileLay->addWidget(pathLabel, 0, 0, Qt::AlignLeft);
@ -430,10 +430,10 @@ LipSyncPopup::LipSyncPopup()
m_topLayout->addLayout(phonemeLay, 0);
}
QHBoxLayout *optionsLay = new QHBoxLayout(this);
QHBoxLayout *optionsLay = new QHBoxLayout();
optionsLay->setMargin(10);
optionsLay->setSpacing(15);
QHBoxLayout *insertAtLay = new QHBoxLayout(this);
QHBoxLayout *insertAtLay = new QHBoxLayout();
insertAtLay->setMargin(0);
insertAtLay->setSpacing(4);
m_insertAtLabel = new QLabel(tr("Insert at Frame: "));

View file

@ -3807,8 +3807,8 @@ void MainWindow::makeTransparencyDialog() {
toggleTransparency(true);
});
QVBoxLayout *togglerLayout = new QVBoxLayout(this);
QHBoxLayout *togglerSliderLayout = new QHBoxLayout(this);
QVBoxLayout *togglerLayout = new QVBoxLayout();
QHBoxLayout *togglerSliderLayout = new QHBoxLayout();
togglerSliderLayout->addWidget(new QLabel(tr("Amount: "), this));
togglerSliderLayout->addWidget(m_transparencySlider);
togglerLayout->addLayout(togglerSliderLayout);

View file

@ -52,15 +52,15 @@ double distanceSquared(QPoint p1, QPoint p2) {
MotionPathPanel::MotionPathPanel(QWidget* parent)
: QWidget(parent), m_currentSpline(0), m_playbackExecutor() {
m_outsideLayout = new QVBoxLayout(this);
m_outsideLayout = new QVBoxLayout();
m_outsideLayout->setMargin(0);
m_outsideLayout->setSpacing(0);
m_insideLayout = new QVBoxLayout(this);
m_insideLayout = new QVBoxLayout();
m_insideLayout->setMargin(0);
m_insideLayout->setSpacing(0);
m_pathsLayout = new QGridLayout(this);
m_pathsLayout = new QGridLayout();
m_pathsLayout->setContentsMargins(0, 3, 2, 3);
m_pathsLayout->setSpacing(2);
@ -75,10 +75,10 @@ MotionPathPanel::MotionPathPanel(QWidget* parent)
QSizePolicy policy(QSizePolicy::Expanding, QSizePolicy::Maximum);
pathFrame->setSizePolicy(policy);
m_mainControlsPage = new QFrame(this);
m_mainControlsPage = new QFrame();
m_mainControlsPage->setLayout(m_insideLayout);
m_graphArea = new GraphWidget(this);
m_graphArea = new GraphWidget();
m_graphArea->setMaxXValue(1000);
m_graphArea->setMaxYValue(1000);
@ -101,7 +101,7 @@ MotionPathPanel::MotionPathPanel(QWidget* parent)
m_toolbar->addAction(CommandManager::instance()->getAction("T_Geometric"));
m_toolbar->setFixedHeight(18);
m_toolbar->setIconSize(QSize(16, 16));
m_toolLayout = new QHBoxLayout(this);
m_toolLayout = new QHBoxLayout();
m_toolLayout->setSpacing(2);
m_toolLayout->setMargin(2);
m_toolLayout->addWidget(m_toolbar);
@ -134,11 +134,11 @@ MotionPathPanel::MotionPathPanel(QWidget* parent)
container->setObjectName("MotionPathToolbar");
container->setLayout(m_toolLayout);
m_controlsLayout = new QVBoxLayout(this);
m_controlsLayout = new QVBoxLayout();
m_controlsLayout->setMargin(10);
m_controlsLayout->setSpacing(3);
QHBoxLayout* graphLayout = new QHBoxLayout(this);
QHBoxLayout* graphLayout = new QHBoxLayout();
graphLayout->setMargin(0);
graphLayout->setSpacing(0);
graphLayout->addWidget(m_graphArea);
@ -294,7 +294,7 @@ void MotionPathPanel::createControl(TStageObjectSpline* spline, int number) {
QComboBox* colorCombo = new QComboBox(this);
fillCombo(colorCombo, spline);
QHBoxLayout* nameLayout = new QHBoxLayout(this);
QHBoxLayout* nameLayout = new QHBoxLayout();
nameLayout->addWidget(nameLabel);
nameLayout->addWidget(nameEdit);
nameEdit->hide();

View file

@ -255,7 +255,7 @@ OutputSettingsPopup::OutputSettingsPopup(bool isPreview)
m_topLayout->addSpacing(5);
QHBoxLayout *renderButtonLayout = new QHBoxLayout(this);
QHBoxLayout *renderButtonLayout = new QHBoxLayout();
renderButtonLayout->addWidget(renderButton);
if (!isPreview)
renderButtonLayout->addWidget(saveAndRenderButton);

View file

@ -441,7 +441,7 @@ TPanelTitleBarButtonForGrids::TPanelTitleBarButtonForGrids(
QWidgetAction *gridsAction = new QWidgetAction(this);
QWidget *gridWidget = new QWidget(this);
QGridLayout *gridLayout = new QGridLayout(this);
QGridLayout *gridLayout = new QGridLayout();
QCheckBox *thirdsCheckbox = new QCheckBox(tr("Rule of Thirds"), this);
thirdsCheckbox->setChecked(ShowRuleOfThirds != 0);

View file

@ -60,7 +60,7 @@ ProjectPopup::ProjectPopup(bool isModal)
m_prjNameLabel = new QLabel(tr("Project Name:"), this);
m_pathFieldLabel = new QLabel(tr("Create Project In:"), this);
m_nameFld = new LineEdit();
m_recentProjectLayout = new QGridLayout(this);
m_recentProjectLayout = new QGridLayout();
m_recentProjectLayout->setSpacing(2);
m_recentProjectLayout->setMargin(4);
m_projectLocationFld =

View file

@ -221,7 +221,7 @@ TimeStretchPopup::TimeStretchPopup()
SLOT(setCurrentStretchType(int)));
addWidget(tr("Stretch:"), m_stretchType);
QHBoxLayout *rangeLayout = new QHBoxLayout(this);
QHBoxLayout *rangeLayout = new QHBoxLayout();
m_oldRange = new QLabel("0", this);
m_oldRange->setFixedSize(43, DVGui::WidgetHeight);
rangeLayout->addWidget(m_oldRange);

View file

@ -62,7 +62,7 @@ NotePopup::NotePopup(XsheetViewer *viewer, int noteIndex)
beginVLayout();
QGridLayout *layout = new QGridLayout(this);
QGridLayout *layout = new QGridLayout();
layout->setMargin(1);
layout->setColumnStretch(7, 10);
layout->setColumnStretch(8, 10);