comparison src/dialog/information.cpp @ 3:190ded9438c0

Fix many warnings
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 11:57:25 -0400
parents 23d0d9319a00
children 1d82f6e04d7d
comparison
equal deleted inserted replaced
2:23d0d9319a00 3:190ded9438c0
50 << anime->audience_score << "%\n"; 50 << anime->audience_score << "%\n";
51 UiUtils::CreateTextParagraphWithLabels(main_information_widget, "Details", "Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:", details_data, QPoint(6, 62), QSize(636-18, 142)); 51 UiUtils::CreateTextParagraphWithLabels(main_information_widget, "Details", "Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:", details_data, QPoint(6, 62), QSize(636-18, 142));
52 UiUtils::CreateSelectableTextParagraph(main_information_widget, "Synopsis", QString::fromWCharArray(anime->synopsis.c_str()), QPoint(6, 202), QSize(636-18, 253)); 52 UiUtils::CreateSelectableTextParagraph(main_information_widget, "Synopsis", QString::fromWCharArray(anime->synopsis.c_str()), QPoint(6, 202), QSize(636-18, 253));
53 tabbed_widget->addTab(main_information_widget, "Main information"); 53 tabbed_widget->addTab(main_information_widget, "Main information");
54 QWidget* settings_widget = new QWidget(tabbed_widget); 54 QWidget* settings_widget = new QWidget(tabbed_widget);
55 55 tabbed_widget->addTab(settings_widget, "My list and settings");
56 QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); 56 QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
57 connect(button_box, &QDialogButtonBox::accepted, this, &OnOK); 57 connect(button_box, &QDialogButtonBox::accepted, this, &InformationDialog::OnOK);
58 connect(button_box, &QDialogButtonBox::rejected, this, &QDialog::reject); 58 connect(button_box, &QDialogButtonBox::rejected, this, &QDialog::reject);
59 QVBoxLayout* buttons_layout = new QVBoxLayout(widget); 59 QVBoxLayout* buttons_layout = new QVBoxLayout(widget);
60 buttons_layout->addWidget(widget, 0, Qt::AlignTop); 60 buttons_layout->addWidget(widget, 0, Qt::AlignTop);
61 buttons_layout->addWidget(button_box, 0, Qt::AlignBottom); 61 buttons_layout->addWidget(button_box, 0, Qt::AlignBottom);
62 // this should probably be win32-only 62 // this should probably be win32-only