<addaction name="actionClearAnimeTitleData"/>
<addaction name="separator"/>
</widget>
+ <widget class="QMenu" name="menu_Help">
+ <property name="title">
+ <string>&Help</string>
+ </property>
+ <addaction name="actionAboutLocalMyList"/>
+ </widget>
<addaction name="menuConnection"/>
<addaction name="menu_Actions"/>
<addaction name="menuSettings"/>
+ <addaction name="menu_Help"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<string>Import Titles from Web</string>
</property>
</action>
+ <action name="actionAboutLocalMyList">
+ <property name="text">
+ <string>About LocalMyList...</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
--- /dev/null
+#include "versiondialog.h"
+
+#include <QGridLayout>
+#include <QLabel>
+#include <QDialogButtonBox>
+#include <QPushButton>
+#include <QSysInfo>
+#include <QApplication>
+#include "mylist.h"
+
+VersionDialog::VersionDialog(QWidget *parent) : QDialog(parent)
+{
+ setWindowTitle(tr("About %1").arg(qApp->applicationName()));
+
+ setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+
+ QGridLayout *layout = new QGridLayout(this);
+ layout->setSizeConstraint(QLayout::SetFixedSize);
+
+ QString revision;
+ if (LocalMyList::MyList::revision())
+ revision = tr("from revision %1").arg(LocalMyList::MyList::revision());
+
+ const QString description = tr(
+ "<h3>%1 %2 <font size=\"3\">(%7 bit)</font></h3>"
+ "<p>Built with\tQt %3<br/>"
+ "Running with\tQt %4<br/>"
+ "<br/>"
+ "Built on " __DATE__ " at " __TIME__ " "
+ "%6"
+ "<br/>"
+ "<br/>"
+ "Copyright (C) 2009 %5. All rights reserved.</p>"
+ "<p>The program is provided AS IS with NO WARRANTY OF ANY KIND, "
+ "INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
+ "PARTICULAR PURPOSE.</p>")
+ .arg(qApp->applicationName())
+ .arg(qApp->applicationVersion())
+ .arg(QLatin1String(QT_VERSION_STR))
+ .arg(QLatin1String(qVersion()))
+ .arg(qApp->organizationName())
+ .arg(revision)
+ .arg(QSysInfo::WordSize);
+
+ QLabel *copyrightLabel = new QLabel(description);
+ copyrightLabel->setWordWrap(true);
+ copyrightLabel->setOpenExternalLinks(true);
+ copyrightLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
+
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
+ QPushButton *closeButton = buttonBox->button(QDialogButtonBox::Close);
+
+ buttonBox->addButton(closeButton, QDialogButtonBox::ButtonRole(QDialogButtonBox::RejectRole | QDialogButtonBox::AcceptRole));
+ connect(buttonBox , SIGNAL(rejected()), this, SLOT(reject()));
+
+ layout->addWidget(copyrightLabel, 0, 1, 4, 4);
+ layout->addWidget(buttonBox, 4, 0, 1, 5);
+}