]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/fontbox.cpp
First steps in fixing/cleaning up preview/snapper rendering.
[architektonas] / src / widgets / fontbox.cpp
index 8ea742b69f8fec5b1a1d9c6ea83efe1983c31b6c..ba06a48e543bf2ffe455a02fab930e3077814858 100644 (file)
  * Default Constructor. You must call init manually if you choose
  * to use this constructor.
  */
-QG_FontBox::QG_FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent)
+FontBox::FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent)
 {
 }
 
 /**
  * Destructor
  */
-QG_FontBox::~QG_FontBox()
+FontBox::~FontBox()
 {
 }
 
@@ -39,7 +39,7 @@ QG_FontBox::~QG_FontBox()
  * Initialisation (called from constructor or manually but only
  * once).
  */
-void QG_FontBox::init()
+void FontBox::init()
 {
        QStringList fonts;
 
@@ -58,7 +58,7 @@ void QG_FontBox::init()
        slotFontChanged(currentIndex());
 }
 
-RS_Font * QG_FontBox::getFont()
+RS_Font * FontBox::getFont()
 {
        return currentFont;
 }
@@ -66,9 +66,9 @@ RS_Font * QG_FontBox::getFont()
 /**
  * Sets the currently selected width item to the given width.
  */
-void QG_FontBox::setFont(const QString & fName)
+void FontBox::setFont(const QString & fName)
 {
-       RS_DEBUG->print("QG_FontBox::setFont %s\n", fName.toLatin1().data());
+       RS_DEBUG->print("FontBox::setFont %s\n", fName.toLatin1().data());
 //     setCurrentText(fName);
        setItemText(currentIndex(), fName);
 //     slotFontChanged(currentItem());
@@ -79,9 +79,9 @@ void QG_FontBox::setFont(const QString & fName)
  * Called when the font has changed. This method
  * sets the current font to the value chosen.
  */
-void QG_FontBox::slotFontChanged(int index)
+void FontBox::slotFontChanged(int index)
 {
-    RS_DEBUG->print("QG_FontBox::slotFontChanged %d\n", index);
+    RS_DEBUG->print("FontBox::slotFontChanged %d\n", index);
     currentFont = RS_FONTLIST->requestFont(currentText());
 
     if (currentFont != NULL)