MenuWidget::MenuWidget(QWidget *parent) :
QWidgetAction(parent) {
+ //creating custom tab widget, and sets style sheet to have centered tabs
+ tabWidget = new MenuTabWidget(this);
+ //creates custom tab widget, and sets style sheet to have centered tabs
+ tabWidget = new MenuTabWidget();
tabWidget->setStyleSheet("QTabWidget::tab-bar {alignment: center;}");
}
fullScreenToolButton->sizeHint().height()*2);
#endif*/
--
- searchingProgressBar = new QProgressBar(this);
- //progress bar have minimum and maximum values set to 0, which will effect
+ searchingProgressBar = new QProgressBar();
+ //progress bar has minimum and maximum values set to 0, which will effect
//with "I'm alive" bar
searchingProgressBar->setMinimum(0);
searchingProgressBar->setMaximum(0);
trans=tr("<?xml version=\"1.0\" encoding=\"UTF-8\"?>") + tr("\n <ar>") + trans + tr("\n </ar>");
trans=XslConversion(trans);
+
textEdit->insertHtml(trans);
- // textEdit->setPlainText(trans);
- textEdit->repaint(this->rect());
+// textEdit->setPlainText(trans);
+ textEdit->repaint(this->rect());
update(this->rect());
- emit updateSize();
+ Q_EMIT updateSize();
}
QString TranslationWidget::XslConversion(QString translation)
</xsl:template>
<xsl:template match="info">
++<<<<<<< HEAD
+ <!-- <xsl:variable name="path" select="info/@path"/>-->
+ <tr bgcolor="#99FF99">
+ <th>
+ <xsl:if test="@bookmark = 'true'">
+ <img src="mydata://image.png"/>
+ </xsl:if>
+ <xsl:value-of select="."/> <!-- <img src="{$path}"/> -->
+ </th>
++=======
+ <tr>
+ <th class="info"><xsl:value-of select="."/></th>
++>>>>>>> 3e7118bfec64f44b11205ca836cb1a82c725d123
</tr>
</xsl:template>
<xsl:template match="key">
++<<<<<<< HEAD
+ <tr bgcolor="#99CCFF">
+ <th><xsl:value-of select="."/></th>
+ </tr>
++=======
+ <tr>
+ <th class="key"><xsl:value-of select="."/></th>
+ </tr>
++>>>>>>> 3e7118bfec64f44b11205ca836cb1a82c725d123
</xsl:template>
<xsl:template match="t">
Q_OBJECT
public:
explicit XdxfDictDialog(XdxfPlugin* plugin, QObject *parent = 0);
-
/*!
Shows add new xdxf dictionary dialog and returns settings of new dict
- \param parent parent widget on which will be displayed dialog
+ \param parent parent widget on which dialog will be displayed
*/
Settings* addNewDictionary(QWidget *parent);
QSqlDatabase db;
QString db_name;
- //! number of words in dicrionary
+ //! number of words in dictionary
long _wordsCount;
-
- //! scans dictionary file to get information about it
- void getDictionaryInfo();
-
volatile bool stopped;
Settings *_settings;
XdxfDictDialog* _dictDialog;