#include "widget.h"
#include "ui_widget.h"
#include<QTimer>
#include<QtGui>
#include<QMouseEvent>
 
    ui(new Ui::Widget)
{
 
    QImage *img 
= new QImage("/home/ishwarya/displayimages/local/1.jpeg");
     QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
     label->setPixmap(map);
    label->show();
    QTimer::singleShot(10000,
this,
SLOT(slot1
()));
  
    ui->setupUi(this);
}
 
Widget::~Widget()
{
    delete ui;
 
}
 
void Widget::slot1()
 
{
 
    QImage *img 
= new QImage("/home/ishwarya/displayimages/local/2.jpeg");
     QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
     label->setPixmap(map);
    label->showFullScreen();
    label->show();
 
QTimer::singleShot(10000,
this,
SLOT(slot2
()));
  
}
 
void Widget::slot2()
{
    QImage *img 
= new QImage("/home/ishwarya/displayimages/local/3.jpeg");
     QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
     label->setPixmap(map);
    label->showFullScreen();
    label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot3
()));
 }
void Widget::slot3()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/4.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot4
()));
 }
void Widget::slot4()
{
    showFullScreen();
    activateWindow();
    update();
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/5.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot5
()));
  
}
 
void Widget::slot5()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/6.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot6
()));
 }
 
void Widget::slot6()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/7.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot7
()));
  
}
 
void Widget::slot7()
 
{
    showFullScreen();
    activateWindow();
    update();
    QImage *img 
= new QImage("/home/ishwarya/displayimages/local/8.jpeg");
     QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
     label->setPixmap(map);
    label->showFullScreen();
    label->show();
 
QTimer::singleShot(10000,
this,
SLOT(slot8
()));
  
}
 
void Widget::slot8()
{
    QImage *img 
= new QImage("/home/ishwarya/displayimages/local/9.jpeg");
     QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
     label->setPixmap(map);
    label->showFullScreen();
    label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot9
()));
 }
void Widget::slot9()
{
    showFullScreen();
    activateWindow();
    update();
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/10.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot10
()));
 }
void Widget::slot10()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/11.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot11
()));
  
}
 
void Widget::slot11()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/12.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot12
()));
 }
 
void Widget::slot12()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/13.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot13
()));
  
}
void Widget::slot13()
{
    showFullScreen();
    activateWindow();
    update();
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/14.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot14
()));
 }
void Widget::slot14()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/15.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot15
()));
  
}
 
void Widget::slot15()
{
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/16.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
     QTimer::singleShot(10000,
this,
SLOT(slot16
()));
 }
 
void Widget::slot16()
{
 
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/17.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot17
()));
  
}
void Widget::slot17()
{
    showFullScreen();
    activateWindow();
    update();
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/18.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot18
()));
  
}
void Widget::slot18()
{
 
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/19.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot19
()));
  
}
void Widget::slot19()
{
 
     QImage *img 
= new QImage("/home/ishwarya/displayimages/local/20.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot20
()));
  
}
void Widget::slot20()
{
    showFullScreen();
    activateWindow();
    update();
     QImage *img 
= new QImage("/home/ishwarya/displayimages/remote/1.jpeg");
      QPixmap map 
= QPixmap::fromImage(img
->scaled
(900,
900,Qt
::KeepAspectRatio,Qt
::FastTransformation));
      label->setPixmap(map);
     label->showFullScreen();
     label->show();
 
    QTimer::singleShot(10000,
this,
SLOT(slot1
()));
  
}
 
 
{
    if(event->button()==Qt::LeftButton || Qt::RightButton)
    {
 
     showMaximized();
       activateWindow();
        update();
        QTimer::singleShot(delay1,
this,
SLOT(repaint
()));
  
    }
 
}