#include "q3combobox.h"
#include "qpainter.h"
#include "qdrawutil.h"
#include "qpixmap.h"
#include "qtimer.h"
#include "qapplication.h"
#include "qlineedit.h"
#include "qbitmap.h"
#include "qstringlist.h"
#include "qstyle.h"
#include "qevent.h"
#include "qmenu.h"
#include "qmenudata.h"
#include "qstyleoption.h"
#include "qdesktopwidget.h"
#include "q3popupmenu.h"
#include "q3listbox.h"
#include "q3strlist.h"
#include "q3frame.h"
#include <limits.h>
#include <qdebug.h>
#include <private/qeffects_p.h>
Include dependency graph for q3combobox.cpp:

Go to the source code of this file.
Classes | |
| class | Q3ComboBoxPopup |
| class | Q3ComboBoxPopupItem |
| class | Q3ComboBoxData |
Functions | |
| static QString | escapedComboString (const QString &str) |
| static bool | checkInsertIndex (const char *method, const char *name, int count, int *index) |
| static bool | checkIndex (const char *method, const char *name, int count, int index) |
| static int | listHeight (Q3ListBox *l, int sl) |
| static bool checkIndex | ( | const char * | method, | |
| const char * | name, | |||
| int | count, | |||
| int | index | |||
| ) | [inline, static] |
Definition at line 477 of file q3combobox.cpp.
References qWarning().
Referenced by Q3ComboBox::changeItem(), Q3ComboBox::pixmap(), Q3ComboBox::removeItem(), Q3ComboBox::setCurrentItem(), and Q3ComboBox::text().
00479 { 00480 bool range_err = (index >= count); 00481 #if defined(QT_CHECK_RANGE) 00482 if ( range_err ) 00483 qWarning( "Q3ComboBox::%s: (%s) Index %i out of range", 00484 method, name ? name : "<no name>", index ); 00485 #else 00486 Q_UNUSED( method ) 00487 Q_UNUSED( name ) 00488 #endif 00489 return !range_err; 00490 }
Here is the call graph for this function:

| static bool checkInsertIndex | ( | const char * | method, | |
| const char * | name, | |||
| int | count, | |||
| int * | index | |||
| ) | [inline, static] |
Definition at line 459 of file q3combobox.cpp.
References qWarning().
Referenced by Q3ComboBox::insertItem().
00461 { 00462 bool range_err = (*index > count); 00463 #if defined(QT_CHECK_RANGE) 00464 if ( range_err ) 00465 qWarning( "Q3ComboBox::%s: (%s) Index %d out of range", 00466 method, name ? name : "<no name>", *index ); 00467 #else 00468 Q_UNUSED( method ) 00469 Q_UNUSED( name ) 00470 #endif 00471 if ( *index < 0 ) // append 00472 *index = count; 00473 return !range_err; 00474 }
Here is the call graph for this function:

Definition at line 343 of file q3combobox.cpp.
References QString::replace().
Referenced by Q3ComboBox::insertItem(), Q3ComboBox::insertStringList(), Q3ComboBox::insertStrList(), and Q3ComboBox::popup().
Here is the call graph for this function:

| static int listHeight | ( | Q3ListBox * | l, | |
| int | sl | |||
| ) | [static] |
Definition at line 1535 of file q3combobox.cpp.
References l.
Referenced by Q3ComboBox::popup().
01536 { 01537 if ( l->count() > 0 ) 01538 return QMIN( l->count(), (uint)sl) * l->item( 0 )->height(l); 01539 else 01540 return l->sizeHint().height(); 01541 }
1.5.1