[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: Quick (and I think easy) KDialogBase question
From:       David Faure <faure () kde ! org>
Date:       2000-02-23 23:26:32
[Download RAW message or body]

On Wed, Feb 23, 2000 at 06:23:51PM -0500, Erik Severinghaus wrote:
> I found a little free time, and am trying to throw a front end on the
> KoDocumentInfo stuff that Torben implemented, and am having some
> problems with KDialogBase. Please forgive my ignorance (or you may think
> stupidity) but here is the beginning:
> 
> void KoMainWindow::slotFileProperties()
> {
>         KDialogBase *dia = new KDialogBase(this, "propertiesdialog",
> true,
> caption, Ok|Cancel, Ok, true );
> }
> 
> and despite the fact that Ok and Cancel are both defined in the enum in
> kdialogbase.h which is included, I receive the following error: I have
> also tried "enum ButtonCode Ok" which also yields errors. Any help would
> really be appreciated, and I'm sorry for the dumb question.
> 
> koMainWindow.cc: In method `KoMainWindow::KoMainWindow(KInstance * = 0,
> const char * = 0)':
> koMainWindow.cc:120: warning: unused variable `class KAction * print'
> koMainWindow.cc: In method `void KoMainWindow::slotFileProperties()':
> koMainWindow.cc:469: `Ok' undeclared (first use this function)

Use KDialogBase::Ok

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic