mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: fix build of tests against Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e720461043
commit
3c010908fb
7 changed files with 27 additions and 28 deletions
|
@ -26,16 +26,15 @@
|
|||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
QApplication::setColorSpec( QApplication::CustomColor );
|
||||
KAboutData about("KColorDialogTest", "kdelibs4", ki18n("KColorDialogTest"), "version");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
//KApplication::disableAutoDcopRegistration();
|
||||
KAboutData about("KColorDialogTest", "kdelibs4", ki18n("KColorDialogTest"), "version");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
//KApplication::disableAutoDcopRegistration();
|
||||
|
||||
KApplication a;
|
||||
KApplication a;
|
||||
|
||||
QColor color;
|
||||
int nRet = KColorDialog::getColor( color, Qt::red /*testing default color*/ );
|
||||
QColor color;
|
||||
int nRet = KColorDialog::getColor( color, Qt::red /*testing default color*/ );
|
||||
|
||||
return nRet;
|
||||
return nRet;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#include "../colors/kcolorspaces.h" // private header
|
||||
#include "../colors/kcolorspaces.cpp" // private implementation
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void tst_KColorUtils::testOverlay()
|
||||
{
|
||||
QColor color1(10, 10, 100);
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QBoxLayout>
|
||||
#include <QtGui/QInputDialog>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kcmdlineargs.h>
|
||||
|
@ -93,14 +94,13 @@ int main(int argc, char **argv)
|
|||
KMessage_Test *mainWidget = new KMessage_Test;
|
||||
mainWidget->setAttribute( static_cast<Qt::WidgetAttribute>(Qt::WA_DeleteOnClose | Qt::WA_QuitOnClose) );
|
||||
|
||||
int i = QMessageBox::information(0, "Select", "Select type of MessageHandler",
|
||||
"KMessageBox", "KPassivePopup", "Default (stderr)");
|
||||
if(i == 0)
|
||||
{
|
||||
bool ok = false;
|
||||
const QStringList choices = QStringList() << "KMessageBox" << "KPassivePopup" << "Default (stderr)";
|
||||
QString result = QInputDialog::getItem(0, "Select", "Select type of MessageHandler", choices, 0, false, &ok);
|
||||
|
||||
if(ok && result == "KMessageBox") {
|
||||
KMessage::setMessageHandler( new KMessageBoxMessageHandler(mainWidget) );
|
||||
}
|
||||
else if(i == 1)
|
||||
{
|
||||
} else if(ok && result == "KPassivePopup") {
|
||||
KMessage::setMessageHandler( new KPassivePopupMessageHandler(mainWidget) );
|
||||
}
|
||||
|
||||
|
|
|
@ -26,13 +26,12 @@
|
|||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
QApplication::setColorSpec( QApplication::CustomColor );
|
||||
KAboutData about("KNewPasswordDialogTest", 0, ki18n("KNewPasswordDialogTest"), "1");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
KAboutData about("KNewPasswordDialogTest", 0, ki18n("KNewPasswordDialogTest"), "1");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
|
||||
KApplication a;
|
||||
|
||||
KNewPasswordDialog dlg;
|
||||
KNewPasswordDialog dlg;
|
||||
dlg.setPrompt(i18n("Enter a password for the test"));
|
||||
|
||||
if( dlg.exec() )
|
||||
|
|
|
@ -26,9 +26,8 @@
|
|||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
QApplication::setColorSpec( QApplication::CustomColor );
|
||||
KAboutData about("KNewPasswordDialogTest", 0, ki18n("KNewPasswordDialogTest"), "1");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
KAboutData about("KNewPasswordDialogTest", 0, ki18n("KNewPasswordDialogTest"), "1");
|
||||
KCmdLineArgs::init(argc, argv, &about);
|
||||
|
||||
KApplication a;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ void testWindow::slotClick(int id)
|
|||
break;
|
||||
|
||||
case 2:
|
||||
QMessageBox::information(0, "Go to line", "Enter line number:", "where?");
|
||||
QMessageBox::information(0, "Go to line", "Enter line number:");
|
||||
statusbar->changeItem("16543", 2);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#include <kio/deletejob.h>
|
||||
#include "kiotesthelper.h" // createTestFile etc.
|
||||
|
||||
#include <QCore/QMimeData>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QMimeData>
|
||||
#include <QClipboard>
|
||||
|
||||
static QString otherTmpDir()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue