Replying to myself because I forgot to put lyx-devel in copy.
Abdelrazak Younes a écrit :
Abdelrazak Younes a écrit :
Helge Hafting a écrit :
../QDocumentDialog.h:95: error: 'BiblioUi' is not a member of 'Ui'
../QDocumentDialog.h:95: error: 'BiblioUi' is not a member of 'Ui'
../QDocumentDialog.h:95: error: template argument 1 is invalid
OK, I see the problem, it is not related to gcc.
I think it's a problem of QtDesigner and/or uic. The objectName in
the ui file is Biblio while it should be BiblioUi.
I don't know the reason why this happen though. Which version of Qt
are you using? It seems that my version of "uic" (4.1.1) translates
the ui file based on its name independently of the objectName inside.
I am going to verify all ui files. I'll let you know when I commit
the fixes.
Actually, if you could test this patch just to be sure that this is
problem it would be great! Most of the object name don't have the Ui
suffix....
Abdel.
------------------------------------------------------------------------
Index: BiblioUi.ui
===================================================================
--- BiblioUi.ui (revision 13453)
+++ BiblioUi.ui (working copy)
@@ -1,137 +1,139 @@
-<ui version="4.0" stdsetdef="1" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
- <class>BiblioUi</class>
- <widget class="QWidget" name="Biblio" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>418</width>
- <height>376</height>
- </rect>
- </property>
- <property name="windowTitle" >
- <string/>
- </property>
- <layout class="QGridLayout" >
+<ui version="4.0" >
+ <author></author>
+ <comment></comment>
+ <exportmacro></exportmacro>
+ <class>BiblioUi</class>
+ <widget class="QWidget" name="BiblioUi" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>418</width>
+ <height>376</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string/>
+ </property>
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>11</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="0" column="0" >
+ <widget class="QGroupBox" name="CiteStyleBG" >
+ <property name="title" >
+ <string>Citation Style</string>
+ </property>
+ <layout class="QGridLayout" >
<property name="margin" >
- <number>11</number>
+ <number>11</number>
</property>
<property name="spacing" >
- <number>6</number>
+ <number>6</number>
</property>
+ <item row="2" column="0" >
+ <widget class="QRadioButton" name="citeJurabibRB" >
+ <property name="toolTip" >
+ <string>Use the jurabib styles for law and humanities</string>
+ </property>
+ <property name="text" >
+ <string>&Jurabib</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="citeNatbibRB" >
+ <property name="toolTip" >
+ <string>Use the natbib styles for natural sciences and arts</string>
+ </property>
+ <property name="text" >
+ <string>&Natbib</string>
+ </property>
+ </widget>
+ </item>
<item row="0" column="0" >
- <widget class="QGroupBox" name="CiteStyleBG" >
- <property name="title" >
- <string>Citation Style</string>
- </property>
- <layout class="QGridLayout" >
- <property name="margin" >
- <number>11</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item row="2" column="0" >
- <widget class="QRadioButton" name="citeJurabibRB" >
- <property name="text" >
- <string>&Jurabib</string>
- </property>
- <property name="toolTip" >
- <string>Use the jurabib styles for law and
humanities</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0" >
- <widget class="QRadioButton" name="citeNatbibRB" >
- <property name="text" >
- <string>&Natbib</string>
- </property>
- <property name="toolTip" >
- <string>Use the natbib styles for natural sciences and
arts</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0" >
- <widget class="QRadioButton" name="citeDefaultRB" >
- <property name="text" >
- <string>&Default (numerical)</string>
- </property>
- <property name="toolTip" >
- <string>Use BibTeX's default numerical styles</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1" >
- <layout class="QHBoxLayout" >
- <property name="margin" >
- <number>0</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
- <widget class="QLabel" name="citationStyleL" >
- <property name="enabled" >
- <bool>false</bool>
- </property>
- <property name="text" >
- <string>Natbib &style:</string>
- </property>
- <property name="buddy" >
- <cstring>citeStyleCO</cstring>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="citeStyleCO" >
- <property name="enabled" >
- <bool>false</bool>
- </property>
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
+ <widget class="QRadioButton" name="citeDefaultRB" >
+ <property name="toolTip" >
+ <string>Use BibTeX's default numerical styles</string>
+ </property>
+ <property name="text" >
+ <string>&Default (numerical)</string>
+ </property>
+ </widget>
</item>
- <item row="2" column="0" >
- <spacer name="Spacer2" >
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>20</height>
- </size>
+ <item row="1" column="1" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="citationStyleL" >
+ <property name="enabled" >
+ <bool>false</bool>
</property>
- <property name="sizeType" >
- <enum>Expanding</enum>
+ <property name="text" >
+ <string>Natbib &style:</string>
</property>
- <property name="orientation" >
- <enum>Vertical</enum>
+ <property name="buddy" >
+ <cstring>citeStyleCO</cstring>
</property>
- </spacer>
- </item>
- <item row="1" column="0" >
- <widget class="QCheckBox" name="bibtopicCB" >
- <property name="text" >
- <string>S&ectioned bibliography</string>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="citeStyleCO" >
+ <property name="enabled" >
+ <bool>false</bool>
</property>
- <property name="toolTip" >
- <string>Select this if you want to split your bibliography into
sections</string>
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
</property>
- </widget>
+ </widget>
+ </item>
+ </layout>
</item>
- </layout>
- </widget>
- <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ </layout>
+ </widget>
+ </item>
+ <item row="2" column="0" >
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QCheckBox" name="bibtopicCB" >
+ <property name="toolTip" >
+ <string>Select this if you want to split your bibliography into
sections</string>
+ </property>
+ <property name="text" >
+ <string>S&ectioned bibliography</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <resources/>
+ <connections/>
</ui>