зеркало из https://github.com/mozilla/pjs.git
Moved EDITOR ifdefs as moc does not seem to be able to handle ifdef'ing out entire functions.
This commit is contained in:
Родитель
f9936e95fe
Коммит
8b0728a826
|
@ -1,4 +1,4 @@
|
|||
/* $Id: OpenDialog.cpp,v 1.1 1998-09-25 18:01:26 ramiro%netscape.com Exp $
|
||||
/* $Id: OpenDialog.cpp,v 1.2 1998-09-25 23:30:38 cls%seawood.org Exp $
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
|
@ -119,15 +119,15 @@ void OpenDialog::chooseFile()
|
|||
edit->setText( file );
|
||||
}
|
||||
|
||||
#ifdef EDITOR
|
||||
void OpenDialog::openInComposer()
|
||||
{
|
||||
#ifdef EDITOR
|
||||
if( !strlen( edit->text() ) )
|
||||
return;
|
||||
|
||||
context->editorEdit( 0, edit->text() );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void OpenDialog::openInNavigator()
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: OpenDialog.h,v 1.1 1998-09-25 18:01:26 ramiro%netscape.com Exp $
|
||||
/* $Id: OpenDialog.h,v 1.2 1998-09-25 23:30:38 cls%seawood.org Exp $
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
|
@ -34,9 +34,7 @@ public:
|
|||
|
||||
private slots:
|
||||
void chooseFile();
|
||||
#ifdef EDITOR
|
||||
void openInComposer();
|
||||
#endif
|
||||
void openInNavigator();
|
||||
void clear();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче