~sachinr/xpad/xpad-qt

« back to all changes in this revision

Viewing changes to src/pad.cpp

  • Committer: Sachin Raut
  • Date: 2013-09-18 15:08:32 UTC
  • Revision ID: great.sachin@gmail.com-20130918150832-086xl1b73jch29xi
initial import of qt port of xpad
add tray icon
options in tray icon
1) new pad
2) exit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "pad.h"
 
2
#include<QtCore>
 
3
#include<iostream>
 
4
Pad::Pad()
 
5
{
 
6
    mainwindow.SetPad(this);
 
7
    mainwindow.show();
 
8
}
 
9
 
 
10
void Pad::dataReceived(QString data)
 
11
{
 
12
    windowBuffer = data;
 
13
//    qDebug()<<data;
 
14
}
 
15
 
 
16
Pad::~Pad()
 
17
{
 
18
    qDebug() << "pad with data - " << windowBuffer << "deleted";
 
19
}