Commit 20131846 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Remove QFontDialog Dependency... We don't have some CONFIG_ITEM_FONT...

Qt4 - Remove QFontDialog Dependency... We don't have some CONFIG_ITEM_FONT yet... Do we have complete fontconfig support btw ?

parent c26aaba4
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include <QGridLayout> #include <QGridLayout>
#include <QSlider> #include <QSlider>
#include <QFileDialog> #include <QFileDialog>
#include <QFontDialog>
#include <QGroupBox> #include <QGroupBox>
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
#include <QSignalMapper> #include <QSignalMapper>
...@@ -135,10 +134,12 @@ ConfigControl *ConfigControl::createControl( vlc_object_t *p_this, ...@@ -135,10 +134,12 @@ ConfigControl *ConfigControl::createControl( vlc_object_t *p_this,
p_control = new DirectoryConfigControl( p_this, p_item, parent, l, p_control = new DirectoryConfigControl( p_this, p_item, parent, l,
line, false ); line, false );
break; break;
#if 0
case CONFIG_ITEM_FONT: case CONFIG_ITEM_FONT:
p_control = new FontConfigControl( p_this, p_item, parent, l, p_control = new FontConfigControl( p_this, p_item, parent, l,
line, false ); line, false );
break; break;
#endif
case CONFIG_ITEM_KEY: case CONFIG_ITEM_KEY:
p_control = new KeySelectorControl( p_this, p_item, parent, l, line ); p_control = new KeySelectorControl( p_this, p_item, parent, l, line );
break; break;
...@@ -337,6 +338,9 @@ void DirectoryConfigControl::updateField() ...@@ -337,6 +338,9 @@ void DirectoryConfigControl::updateField()
text->setText( dir ); text->setText( dir );
} }
#if 0
#include <QFontDialog>
/********* String / Font **********/ /********* String / Font **********/
FontConfigControl::FontConfigControl( vlc_object_t *_p_this, FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
module_config_t *_p_item, QWidget *_p_widget, module_config_t *_p_item, QWidget *_p_widget,
...@@ -357,6 +361,7 @@ void FontConfigControl::updateField() ...@@ -357,6 +361,7 @@ void FontConfigControl::updateField()
if( !ok ) return; if( !ok ) return;
text->setText( font.family() ); text->setText( font.family() );
} }
#endif
/********* String / choice list **********/ /********* String / choice list **********/
StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this, StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
......
...@@ -312,6 +312,7 @@ public slots: ...@@ -312,6 +312,7 @@ public slots:
virtual void updateField(); virtual void updateField();
}; };
#if 0
class FontConfigControl : public FileConfigControl class FontConfigControl : public FileConfigControl
{ {
Q_OBJECT; Q_OBJECT;
...@@ -324,6 +325,7 @@ public: ...@@ -324,6 +325,7 @@ public:
public slots: public slots:
virtual void updateField(); virtual void updateField();
}; };
#endif
class ModuleConfigControl : public VStringConfigControl class ModuleConfigControl : public VStringConfigControl
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment