mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
generic: adjust tests to KApplication and Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
1f90237e4f
commit
face85bda5
4 changed files with 5 additions and 9 deletions
|
@ -134,7 +134,7 @@ int main(int argc, char *argv[])
|
|||
options.add("+crash|malloc|div0|assert|threads", ki18n("Type of crash."));
|
||||
KCmdLineArgs::addCmdLineOptions(options);
|
||||
|
||||
KApplication app(false);
|
||||
KApplication app;
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
//start drkonqi directly so that drkonqi's output goes to the console
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv, "testicons");
|
||||
QApplication app(argc, argv);
|
||||
app.setApplicationName("testicons");
|
||||
KComponentData componentData("testicons");
|
||||
KIconConfig *w = new KIconConfig(componentData, 0L);
|
||||
w->show();
|
||||
|
|
|
@ -72,11 +72,6 @@ void DeclarativeView::showEvent(QShowEvent *event)
|
|||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void DeclarativeView::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void DeclarativeView::hideEvent(QHideEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
|
|
|
@ -454,12 +454,12 @@ void ModelTest::data()
|
|||
}
|
||||
|
||||
// General Purpose roles that should return a QColor
|
||||
QVariant colorVariant = model->data ( model->index ( 0, 0 ), Qt::BackgroundColorRole );
|
||||
QVariant colorVariant = model->data ( model->index ( 0, 0 ), Qt::BackgroundRole );
|
||||
if ( colorVariant.isValid() ) {
|
||||
Q_ASSERT ( colorVariant.canConvert<QColor>() );
|
||||
}
|
||||
|
||||
colorVariant = model->data ( model->index ( 0, 0 ), Qt::TextColorRole );
|
||||
colorVariant = model->data ( model->index ( 0, 0 ), Qt::ForegroundRole );
|
||||
if ( colorVariant.isValid() ) {
|
||||
Q_ASSERT ( colorVariant.canConvert<QColor>() );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue