micha
17-10-2002, 22:09
Moin,
Hab da gerade ein Problem das mich mittlerweile an den Rand des Wahnsinns treibt ;)
Hier erst mal der Code:
configlesson.h
class ConfigLesson : public ConfigLessonDlg
{
Q_OBJECT
public:
ConfigLesson (QWidget *parent=0, const char *name=0);
~ConfigLesson ();
/** Returns current color for even-numbered lines */
const QColor& colorEvenLines (void);
/** Returns current color for odd-numbered lines */
const QColor& colorOddLines (void);
};
typemaster.h
void TypeMaster::slotConfigTypeMasterApply (ConfigDialog *dialog)
{
LessonView *lesson = view->lesson ()->currentLesson ();
/* Apply page by page the configuration dialog´s options */
/* Page - Lesson */
lesson->setLineColors (dialog->lessonPage ()->colorEvenLines (),
dialog->lessonPage ()->colorOddLines ());
}
lessonview.h
class LessonView : public QTextEdit
{
Q_OBJECT
public:
LessonView (QWidget *parent=0, const char *name=0);
~LessonView ();
/** Sets background colors for several lines
*@param even Defines color for even-numberd lines.
*@param odd Defines color for odd-numbered lines.
*/
void setLineColors (const QColor& even, const QColor& odd);
};
Der Compiler meckert folgendermaßen:
typemaster.cpp: In member function `void
TypeMaster::slotConfigTypeMasterApply(ConfigDialog *)':
typemaster.cpp:493: no matching function for call to `ConfigLesson::
colorEvenLines() const'
configlesson.h:48: candidates are: const QColor&
ConfigLesson::colorEvenLines() <near match>
typemaster.cpp:493: no matching function for call to `ConfigLesson::
colorOddLines() const'
configlesson.h:49: candidates are: const QColor&
ConfigLesson::colorOddLines() <near match>
Ich kann damit gerade irgendwie gar nichts mit anfangen :confused
Vielleicht sieht ja einer von Euch den Fehler.
Gruß micha
Hab da gerade ein Problem das mich mittlerweile an den Rand des Wahnsinns treibt ;)
Hier erst mal der Code:
configlesson.h
class ConfigLesson : public ConfigLessonDlg
{
Q_OBJECT
public:
ConfigLesson (QWidget *parent=0, const char *name=0);
~ConfigLesson ();
/** Returns current color for even-numbered lines */
const QColor& colorEvenLines (void);
/** Returns current color for odd-numbered lines */
const QColor& colorOddLines (void);
};
typemaster.h
void TypeMaster::slotConfigTypeMasterApply (ConfigDialog *dialog)
{
LessonView *lesson = view->lesson ()->currentLesson ();
/* Apply page by page the configuration dialog´s options */
/* Page - Lesson */
lesson->setLineColors (dialog->lessonPage ()->colorEvenLines (),
dialog->lessonPage ()->colorOddLines ());
}
lessonview.h
class LessonView : public QTextEdit
{
Q_OBJECT
public:
LessonView (QWidget *parent=0, const char *name=0);
~LessonView ();
/** Sets background colors for several lines
*@param even Defines color for even-numberd lines.
*@param odd Defines color for odd-numbered lines.
*/
void setLineColors (const QColor& even, const QColor& odd);
};
Der Compiler meckert folgendermaßen:
typemaster.cpp: In member function `void
TypeMaster::slotConfigTypeMasterApply(ConfigDialog *)':
typemaster.cpp:493: no matching function for call to `ConfigLesson::
colorEvenLines() const'
configlesson.h:48: candidates are: const QColor&
ConfigLesson::colorEvenLines() <near match>
typemaster.cpp:493: no matching function for call to `ConfigLesson::
colorOddLines() const'
configlesson.h:49: candidates are: const QColor&
ConfigLesson::colorOddLines() <near match>
Ich kann damit gerade irgendwie gar nichts mit anfangen :confused
Vielleicht sieht ja einer von Euch den Fehler.
Gruß micha