~klimczak-k/beaver-feeds/client

« back to all changes in this revision

Viewing changes to database_plugins/sqlite/datamodel.cpp

  • Committer: Krzysztof Klimczak
  • Date: 2011-01-15 05:11:20 UTC
  • Revision ID: klimczak.k@gmail.com-20110115051120-gvdd5hvlbzsdabsb
*clicked item is marked ad readed

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
                        QDateTime midnight = QDateTime::currentDateTime();
29
29
                        midnight.setTime( QTime(0,0) );
30
30
                        if( time < midnight )
31
 
                                return time.toString("yyyy-MM-dd hh-mm-ss");
 
31
                                return time.toString("yyyy-MM-dd hh.mm.ss");
32
32
                        else
33
 
                                return time.toString("hh-mm-ss");
 
33
                                return time.toString("hh.mm.ss");
34
34
                }
35
35
                break;
36
36
        case Qt::UserRole:
78
78
        }
79
79
        reset();
80
80
}
 
81
 
 
82
void DataModel::itemReaded(const QModelIndex &index){
 
83
        m_list[ index.row() ].readed = true;
 
84
 
 
85
        //TODO
 
86
        //odwołanie do bazy i serwera;
 
87
}