diff --git a/dialogs/aboutdialog.cpp b/dialogs/aboutdialog.cpp index 653f0b859..a62caee6a 100644 --- a/dialogs/aboutdialog.cpp +++ b/dialogs/aboutdialog.cpp @@ -10,21 +10,21 @@ AboutDialog::AboutDialog(QWidget *parent) : setWindowTitle("About Olive"); setMaximumWidth(360); - QVBoxLayout* layout = new QVBoxLayout(); + QVBoxLayout* layout = new QVBoxLayout(this); layout->setSpacing(20); setLayout(layout); - QLabel* label = - new QLabel("
" - "![]()
" - "" - "https://www.olivevideoeditor.org/" - "
" - + tr("Olive is a non-linear video editor. This software is free and protected by the GNU GPL.") - + "
" - + tr("Olive Team is obliged to inform users that Olive source code is available for download from its website.") - + "
"); + QLabel* label = + new QLabel("" + "![]()
" + "" + "https://www.olivevideoeditor.org/" + "
" + + tr("Olive is a non-linear video editor. This software is free and protected by the GNU GPL.") + + "
" + + tr("Olive Team is obliged to inform users that Olive source code is available for download from its website.") + + "
", this); label->setAlignment(Qt::AlignCenter); label->setWordWrap(true); layout->addWidget(label); diff --git a/dialogs/actionsearch.cpp b/dialogs/actionsearch.cpp index b33624bc2..355a111e3 100644 --- a/dialogs/actionsearch.cpp +++ b/dialogs/actionsearch.cpp @@ -17,20 +17,20 @@ ActionSearch::ActionSearch(QWidget *parent) : setWindowFlags(Qt::Popup); - QVBoxLayout* layout = new QVBoxLayout(); + QVBoxLayout* layout = new QVBoxLayout(this); - ActionSearchEntry* entry_field = new ActionSearchEntry(); + ActionSearchEntry* entry_field = new ActionSearchEntry(this); QFont entry_field_font = entry_field->font(); entry_field_font.setPointSize(qRound(entry_field_font.pointSize()*1.2)); entry_field->setFont(entry_field_font); - entry_field->setPlaceholderText(tr("Search for action...")); + entry_field->setPlaceholderText(tr("Search for action...")); connect(entry_field, SIGNAL(textChanged(const QString&)), this, SLOT(search_update(const QString &))); connect(entry_field, SIGNAL(returnPressed()), this, SLOT(perform_action())); connect(entry_field, SIGNAL(moveSelectionUp()), this, SLOT(move_selection_up())); connect(entry_field, SIGNAL(moveSelectionDown()), this, SLOT(move_selection_down())); layout->addWidget(entry_field); - list_widget = new ActionSearchList(); + list_widget = new ActionSearchList(this); QFont list_widget_font = list_widget->font(); list_widget_font.setPointSize(qRound(list_widget_font.pointSize()*1.2)); list_widget->setFont(list_widget_font); @@ -65,7 +65,7 @@ void ActionSearch::search_update(const QString &s, const QString &p, QMenu *pare } else { QString comp = a->text().replace("&", ""); if (comp.contains(s, Qt::CaseInsensitive)) { - QListWidgetItem* item = new QListWidgetItem(comp + "\n(" + menu_text + ")"); + QListWidgetItem* item = new QListWidgetItem(QString("%1\n(%2)").arg(comp, menu_text), list_widget); item->setData(Qt::UserRole+1, reinterpret_cast![]()
![]()
" - "" - + tr("Welcome to Olive!") - + "
" - + tr("Olive is a free open-source video editor released under the GNU GPL. If you have paid for this software, you have been scammed.") - + "
" - + tr("This software is currently in ALPHA which means it is unstable and very likely to crash, have bugs, and have missing features. We offer no warranty so use at your own risk. Please report any bugs or feature requests at %1").arg("www.olivevideoeditor.org") - + "
" - + tr("Thank you for trying Olive and we hope you enjoy it!") - + "
"); + QLabel* text = new QLabel("" + "" + + tr("Welcome to Olive!") + + "
" + + tr("Olive is a free open-source video editor released under the GNU GPL. If you have paid for this software, you have been scammed.") + + "
" + + tr("This software is currently in ALPHA which means it is unstable and very likely to crash, have bugs, and have missing features. We offer no warranty so use at your own risk. Please report any bugs or feature requests at %1").arg("www.olivevideoeditor.org") + + "
" + + tr("Thank you for trying Olive and we hope you enjoy it!") + + "
", this); text->setWordWrap(true); layout->addWidget(text); diff --git a/dialogs/exportdialog.cpp b/dialogs/exportdialog.cpp index 5ed83c0fd..3bad14add 100644 --- a/dialogs/exportdialog.cpp +++ b/dialogs/exportdialog.cpp @@ -498,7 +498,7 @@ void ExportDialog::export_action() { } } - et = new ExportThread(); + et = new ExportThread(this); connect(et, SIGNAL(finished()), et, SLOT(deleteLater())); connect(et, SIGNAL(finished()), this, SLOT(render_thread_finished())); @@ -599,9 +599,9 @@ void ExportDialog::comp_type_changed(int) { void ExportDialog::setup_ui() { QVBoxLayout* verticalLayout = new QVBoxLayout(this); - QHBoxLayout* format_layout = new QHBoxLayout(); + QHBoxLayout* format_layout = new QHBoxLayout(this); - format_layout->addWidget(new QLabel(tr("Format:"))); + format_layout->addWidget(new QLabel(tr("Format:"), this)); formatCombobox = new QComboBox(this); @@ -609,9 +609,9 @@ void ExportDialog::setup_ui() { verticalLayout->addLayout(format_layout); - QHBoxLayout* range_layout = new QHBoxLayout(); + QHBoxLayout* range_layout = new QHBoxLayout(this); - range_layout->addWidget(new QLabel(tr("Range:"))); + range_layout->addWidget(new QLabel(tr("Range:"), this)); rangeCombobox = new QComboBox(this); rangeCombobox->addItem(tr("Entire Sequence")); diff --git a/io/exportthread.cpp b/io/exportthread.cpp index a16a27ec7..f5eff945a 100644 --- a/io/exportthread.cpp +++ b/io/exportthread.cpp @@ -27,7 +27,10 @@ extern "C" { #include