Changeset View
Changeset View
Standalone View
Standalone View
src/kaboutapplicationdialog.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 87 | QT_WARNING_POP | |||
---|---|---|---|---|---|
116 | } | 116 | } | ||
117 | versionLayout->addStretch(); | 117 | versionLayout->addStretch(); | ||
118 | versionWidget->setLayout(versionLayout); | 118 | versionWidget->setLayout(versionLayout); | ||
119 | tabWidget->addTab(versionWidget, i18n("Libraries")); | 119 | tabWidget->addTab(versionWidget, i18n("Libraries")); | ||
120 | 120 | | |||
121 | //And here we go, authors page... | 121 | //And here we go, authors page... | ||
122 | const int authorCount = aboutData.authors().count(); | 122 | const int authorCount = aboutData.authors().count(); | ||
123 | if (authorCount) { | 123 | if (authorCount) { | ||
124 | QWidget *authorWidget = createAuthorsWidget(aboutData.authors(), aboutData.ocsProviderUrl(), | 124 | QWidget *authorWidget = createAuthorsWidget(aboutData.authors(), | ||
125 | aboutData.customAuthorTextEnabled(), | 125 | aboutData.customAuthorTextEnabled(), | ||
126 | aboutData.customAuthorRichText(), | 126 | aboutData.customAuthorRichText(), | ||
127 | aboutData.bugAddress(), q); | 127 | aboutData.bugAddress(), q); | ||
128 | 128 | | |||
129 | const QString authorPageTitle = i18np("Author", "Authors", authorCount); | 129 | const QString authorPageTitle = i18np("Author", "Authors", authorCount); | ||
130 | tabWidget->addTab(authorWidget, authorPageTitle); | 130 | tabWidget->addTab(authorWidget, authorPageTitle); | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | //And credits page... | 133 | //And credits page... | ||
134 | if (!aboutData.credits().isEmpty()) { | 134 | if (!aboutData.credits().isEmpty()) { | ||
135 | QWidget *creditWidget = createCreditWidget(aboutData.credits(), aboutData.ocsProviderUrl(), q); | 135 | QWidget *creditWidget = createCreditWidget(aboutData.credits(), q); | ||
136 | tabWidget->addTab(creditWidget, i18n("Thanks To")); | 136 | tabWidget->addTab(creditWidget, i18n("Thanks To")); | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | //Finally, the optional translators page... | 139 | //Finally, the optional translators page... | ||
140 | if (!(opt & HideTranslators) && !aboutData.translators().isEmpty()) { | 140 | if (!(opt & HideTranslators) && !aboutData.translators().isEmpty()) { | ||
141 | QWidget *translatorWidget = createTranslatorsWidget(aboutData.translators(), aboutData.ocsProviderUrl(), q); | 141 | QWidget *translatorWidget = createTranslatorsWidget(aboutData.translators(), q); | ||
142 | 142 | | |||
143 | tabWidget->addTab(translatorWidget, i18n("Translation")); | 143 | tabWidget->addTab(translatorWidget, i18n("Translation")); | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | createForm(titleWidget, tabWidget, q); | 146 | createForm(titleWidget, tabWidget, q); | ||
147 | } | 147 | } | ||
148 | 148 | | |||
149 | KAboutApplicationDialog::~KAboutApplicationDialog() | 149 | KAboutApplicationDialog::~KAboutApplicationDialog() | ||
150 | { | 150 | { | ||
151 | delete d; | 151 | delete d; | ||
152 | // The delegate wants to be deleted before the items it created, otherwise | 152 | // The delegate wants to be deleted before the items it created, otherwise | ||
153 | // complains bitterly about it | 153 | // complains bitterly about it | ||
154 | qDeleteAll(findChildren<KWidgetItemDelegate *>()); | 154 | qDeleteAll(findChildren<KWidgetItemDelegate *>()); | ||
155 | } | 155 | } |