Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
richardyqn committed Nov 23, 2014
1 parent cc83913 commit a25dd54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Richard_photoList/Richard_photoList.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.2.1, 2014-11-23T10:55:23. -->
<!-- Written by QtCreator 3.2.1, 2014-11-23T10:57:38. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -235,8 +235,8 @@
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Richard_photoList</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/richardyu/Dropbox/Richard_photoList/Richard_photoList.pro</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Richard_photoList2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/richardyu/Documents/groundstation/Richard_photoList/Richard_photoList.pro</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">Richard_photoList.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
Expand Down
8 changes: 4 additions & 4 deletions Richard_photoList/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ MainWindow::MainWindow(QWidget *parent) :
const int h = 150;

// I want to display 100 rows of pictures
// each row contains 8 column;
// each row contains 8 columns;
const int rows = 100;
const int columns = 8;

imageLabel = new QLabel*[rows * columns];
imageMap = new QPixmap*[rows * columns];

// double for loop, treat the image grid like a matric
// double for loop, treat the image grid like a matrix
// for every row, display each column in the current row
for (int k = 0; k < rows; k++) {
for (int j = 0; j < columns; j++) {
Expand Down Expand Up @@ -98,14 +98,14 @@ void MainWindow::addImage() {
const int h = 150;

// I want to display 100 rows of pictures
// each row contains 8 column;
// each row contains 8 columns;
const int rows = 100;
const int columns = 8;

imageLabel = new QLabel*[rows * columns];
imageMap = new QPixmap*[rows * columns];

// double for loop, treat the image grid like a matric
// double for loop, treat the image grid like a matrix
// for every row, display each column in the current row
for (int k = 0; k < rows; k++) {
for (int j = 0; j < columns; j++) {
Expand Down

0 comments on commit a25dd54

Please sign in to comment.