diff options
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui.h')
-rw-r--r-- | tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui.h b/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui.h deleted file mode 100644 index 70d7f62..0000000 --- a/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui.h +++ /dev/null @@ -1,27 +0,0 @@ -/**************************************************************************** -** ui.h extension file, included from the uic-generated form implementation. -** -** If you wish to add, delete or rename functions use TQt Designer which will -** update this file, preserving your code. Create an init() function in place -** of a constructor, and a destroy() function in place of a destructor. -*****************************************************************************/ -#include <tqcolor.h> -#include <tqmap.h> -#include <tqstring.h> - -TQMap<TQString,TQColor> m_colors; - -void ColorNameForm::setColors( const TQMap<TQString,TQColor>& colors ) -{ - m_colors = colors; -} - -void ColorNameForm::validate() -{ - TQString name = colorLineEdit->text(); - if ( ! name.isEmpty() && - ( m_colors.isEmpty() || ! m_colors.contains( name ) ) ) - accept(); - else - colorLineEdit->selectAll(); -} |