Mon, 22 Jun 2015 01:44:30 +0300
Added the ability to automatically look up wad paths from other sources (for now just Doomseeker's configuration). By default, ZCinema will automatically do such a lookup if it fails to find a WAD needed for demo playback. This can also be invoked manually in the config prompt.
#include <QLabel> #include <QTableWidget> #include "versionguientry.h" // // ----------------------------------------------------------------------------- // VersionGuiEntry::VersionGuiEntry (const QString& name, bool isRelease, QLabel* label, QTableWidgetItem* pathItem) : m_name (name), m_isRelease (isRelease), m_label (label), m_pathItem (pathItem) { updateStyleSheet(); } // // ----------------------------------------------------------------------------- // void VersionGuiEntry::setRelease (bool a) { m_isRelease = a; updateStyleSheet(); } // // ----------------------------------------------------------------------------- // void VersionGuiEntry::updateStyleSheet() { m_label->setStyleSheet (m_isRelease ? "font-weight: bold" : ""); } // // ----------------------------------------------------------------------------- // class QLabel* VersionGuiEntry::label() { return m_label; } // // ----------------------------------------------------------------------------- // class QTableWidgetItem* VersionGuiEntry::pathItem() { return m_pathItem; } // // ----------------------------------------------------------------------------- // const QString& VersionGuiEntry::name() { return m_name; } // // ----------------------------------------------------------------------------- // bool VersionGuiEntry::isRelease() { return m_isRelease; }