for(int i=0;i<errs.size();i++){
QSslCertificate c=errs[i].certificate();
err+=tr("Certificate \"%1\"\n Fingerprint (sha1): %2\n Error: %3\n")
- .arg(c.subjectInfo(QSslCertificate::CommonName))
+ .arg(c.subjectInfo(QSslCertificate::CommonName).at(0))
.arg(QString::fromAscii(c.digest(QCryptographicHash::Sha1).toHex()))
.arg(errs[i].errorString());
}
class QLabel;
class QTableView;
class QStandardItemModel;
+class QPrinter;
/**displays an order and allows the user to execute several commands on it*/
class MOrderWindow:public QMainWindow
return "profiles/"+profileid;
}
-QString MSInterface::repoPart()
-{
- QStringList l=svnRepositoryUrl().split("/smoke/");
- if(l.size()>1)return l[1];
- else return svnRepositoryUrl();
-}
-
bool MSInterface::hasRight(Right r)const
{
if(userroles.contains("_admin"))return true;
Q_PROPERTY(QString dataDir READ dataDir)
Q_PROPERTY(QString settingsGroup READ settingsGroup)
Q_PROPERTY(QString sessionId READ sessionId)
- Q_PROPERTY(QString repoPart READ repoPart)
Q_PROPERTY(QString profileId READ profileId)
public:
/**creates the interface object, expects the profile ID as parameter*/
/**returns the current session ID*/
Q_INVOKABLE QString sessionId()const{return m_sessid;}
- /**returns the branch/trunk part of the repository*/
- Q_INVOKABLE static QString repoPart();
-
/**returns default headers, ie. session ID*/
virtual QMap<QString,QString> headers(QString)const;
"protected under the GNU GPL v.3 or at your option any newer<p>"
"See also the <a href=\"%4\">MagicSmoke Homepage</a>.<p>"
"This version was compiled from repository '%1' revision '%2'.")
- .arg(MSInterface::repoPart()) // %1
- .arg(MInterface::svnVersion()) //%2
- .arg(MSInterface::version()) //%3
+ .arg(MSInterface::staticVersionInfo(WOb::VersionRootURL)) // %1
+ .arg(MInterface::staticVersionInfo(WOb::VersionNumber)) //%2
+ .arg(MSInterface::staticVersionInfo(WOb::VersionHR)) //%3
.arg(HOMEPAGE_BASEURL) //%4
);
mb.setStandardButtons(QMessageBox::Ok);
void MApplication::help()
{
QString d=QApplication::applicationDirPath()+"/doc/index.html";
+ //TODO: fix this to work with GIT and be more generic
if(!QFile(d).exists()){
- d=HOMEPAGE_BASEURL "/doc/"+MSInterface::repoPart()+"/index.html";
+ d=HOMEPAGE_BASEURL "/doc/"+MSInterface::staticVersionInfo(WOb::VersionPath)+"/index.html";
}else d="file:///"+d;
QDesktopServices::openUrl(QUrl(d));
}
CONFIG += qt thread link_prl
QT += xml network script scripttools
+contains(QT_MAJOR_VERSION,"5") {
+ QT += widgets printsupport
+}
win32-* {
#RC-File containing the icon: