This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char** argv) | |
{ | |
int x; | |
printf("Enter the number to count up to: "); | |
if(scanf("%d", &x) != 1) { | |
printf("I don't think you know what a number is\n"); | |
return -1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.trolltech.qt.core.QModelIndex; | |
import com.trolltech.qt.gui.*; | |
public class RecursiveSortFilterProxyModel extends QSortFilterProxyModel { | |
protected boolean filterAcceptsRow(int row, QModelIndex parent) { | |
if(super.filterAcceptsRow(row, parent)) { | |
return true; | |
} | |
QStandardItemModel model = (QStandardItemModel)sourceModel(); |
NewerOlder